onStateChange property

Stream<StateChange> onStateChange

Stream of state change events. This allows States and StateTransitions to listen for state changes and notify listeners as necessary.

The event payload will be the previous State.

Implementation

Stream<StateChange> get onStateChange => _stateChangeStream;