State<T> constructor
State<T> (})
Creates a new State
description Optional human-readable description transitions If present, the available transitions out of this state. onEntry Called when this state is entered. onExit Called when this state is exited. isFinal True if this a final state. isParallel True if this is a parallel state. substates The child states of this state, if any. initialTransition A transition designating which substate shoud be activated on entry.
Implementation
State(this.id,
{this.description,
this.transitions = const [],
this.onEntry,
this.onExit,
this.isFinal = false,
this.isParallel = false,
this.substates = const [],
this.initialTransition});