state property

  1. @protected
T? state
inherited

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

@protected
T get state {
  assert(_debugIsMounted(), '');
  return _state;
}
  1. @override
void state=(T? value)
override

Implementation

@override
set state(T? value) => super.state = value;