state property

T? get state

Implementation

T? get state => _state;
set state (T? name)

Implementation

set state(T? name) {
  if (name == _state) return;
  previousState = _state;
  _state = name;
  onBeforeStateChange?.call(previousState, _state);
  _exits[previousState]?.call();
  _enters[_state]?.call();
  onAfterStateChange?.call(previousState, _state);
}