StateGraph<Event, State> constructor

StateGraph<Event, State>(
  1. Map<Type, Map<Type, StateTransitionEntry<State, Event>>> graph, {
  2. Map<Type, StateTransitionEntry<State, Event>> globalEvents = const {},
})

State graph.

Defined by States and Events. Makes transitions based on graph and (optionally) globalEvents.

Implementation

StateGraph(this.graph, {this.globalEvents = const {}});