state property

  1. @override
T get state
override

The current state.

Changing the state will notify the observers. If the newValue is a Future, then the notification will be sent after the future is completed.

Implementation

@override
T get state {
  if (!initialized) {
    _skipFirstNotification = true;
  }
  try {
    return _source.state;
  } catch (e) {
    _skipFirstNotification = false;
    rethrow;
  }
}
  1. @override
set state (FutureOr<T> newValue)
override

Implementation

@override
set state(FutureOr<T> newValue) => _source.state = newValue;