onExit method
void
onExit(
- void doOnEnter(
- S,
- EVENT
Implementation
void onExit(void Function(S, EVENT) doOnEnter) {
_stateDefinition.onExitListeners
.add((STATE state, EVENT cause) => doOnEnter.call(state as S, cause));
}