StateGraph<Event, State> constructor
StateGraph<Event, State> (
- Map<
Type, Map< graph, {Type, StateTransitionEntry< >State, Event> > - Map<
Type, StateTransitionEntry< globalEvents = const {},State, Event> >
State graph.
Defined by State
s and Event
s. Makes transitions based on graph and (optionally) globalEvents.
Implementation
StateGraph(this.graph, {this.globalEvents = const {}});