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