stateAsync property Null safety

Future<T> stateAsync
inherited

It is a future of the state. The future is active if the state is on the isWaiting status.

Implementation

Future<T> get stateAsync async {
  final snap = await _reactiveModelState.snapStateAsync;
  // assert(snap.data != null);
  return snap.data as T;
}
void stateAsync=(Future<T> s)
inherited

Async state mutation.

User setState for mor options

See: state for sync state mutation

Implementation

set stateAsync(Future<T> s) {
  setState((_) => s);
}