onEnter method
void
onEnter(
- void doOnEnter(
- S,
- EVENT
Registers doOnEnter, called whenever the machine enters this state.
Implementation
void onEnter(void Function(S, EVENT) doOnEnter) {
_stateDefinition.onEnterListeners.add((STATE state, EVENT cause) => doOnEnter.call(state as S, cause));
}