onExit method
void
onExit(
- void doOnExit(
- S,
- EVENT
Registers doOnExit, called whenever the machine leaves this state.
Implementation
void onExit(void Function(S, EVENT) doOnExit) {
_stateDefinition.onExitListeners.add((STATE state, EVENT cause) => doOnExit.call(state as S, cause));
}