state property
Handles manual state change (as opposed to automatic state change from listening to the Future).
Implementation
@protected
AsyncValue<T> get state => requireState;
Implementation
@protected
set state(AsyncValue<T> newState) {
// TODO assert Notifier isn't disposed
newState.map(
loading: _onLoading,
error: onError,
data: onData,
);
}