ReplayHap.attach
void attach(Handler handler) @safeAttach a handler. If a value has been emitted, the handler is invoked immediately with the stored value.
Parameters
handler | Delegate handler to attach; null is ignored. |
void attach(FunctionHandler handler) @safeAttach a free-function handler. If a value has been emitted, the handler is invoked immediately with the stored value.
Parameters
handler | Free-function handler to attach; null is ignored. |