AsyncStateRecorder<T> constructor
AsyncStateRecorder<T> (
- ReactiveAsyncNotifier<
T> notifier
Creates a recorder that listens to notifier.
Implementation
AsyncStateRecorder(ReactiveAsyncNotifier<T> notifier) {
void listener() => states.add(notifier.state);
notifier.addListener(listener);
_removeListener = () => notifier.removeListener(listener);
}