on<E extends AutomataEvent, Target extends AutomataState> abstract method
void
on<E extends AutomataEvent, Target extends AutomataState>({
- TransitionType type,
- GuardCondition<
E> ? condition, - List<
Action< ? actions,E> >
Attach a TransitionDefinition
to allow to transition from this
this StateNode to a given StateNode for a specific AutomataEvent.
Implementation
void on<E extends AutomataEvent, Target extends AutomataState>({
TransitionType type,
GuardCondition<E>? condition,
List<Action<E>>? actions,
});