state property

  1. @override
  2. @protected
T state
override

The current "state" of this StateNotifier.

Updating this variable will synchronously call all the listeners. Notifying the listeners is O(N) with N the number of listeners.

Updating the state will throw if at least one listener throws.

Implementation

@override
@protected
T get state => _isDisposed ? _disposedState : super.state;
  1. @override
  2. @protected
void state=(T value)
override

Implementation

@override
@protected
set state(T value) {
  if (!_isDisposed) super.state = value;
}