state property

  1. @protected
AsyncValue<T> get state
inherited

Handles manual state change (as opposed to automatic state change from listening to the Future).

Implementation

@protected
AsyncValue<T> get state => requireState;
  1. @protected
set state (AsyncValue<T> newState)
inherited

Implementation

@protected
set state(AsyncValue<T> newState) {
  // TODO assert Notifier isn't disposed
  newState.map(
    loading: _onLoading,
    error: onError,
    data: onData,
  );
}