State<T> constructor

State<T>(
  1. String? id, {
  2. String? description,
  3. Iterable<Transition<T>> transitions = const [],
  4. Action<T>? onEntry,
  5. Action<T>? onExit,
  6. bool isFinal = false,
  7. bool isParallel = false,
  8. Iterable<State<T>> substates = const [],
  9. Transition<T>? initialTransition,
})

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});