CStateMachine<T extends App<T>> constructor

CStateMachine<T extends App<T>>(
  1. T app, {
  2. bool populateDefaults = true,
  3. Map<String, CStateMachineStateDef>? states,
  4. List<CStateMachineTransition>? transitions,
})

Implementation

CStateMachine(super.app, {
  super.populateDefaults,
  Map<String, CStateMachineStateDef>? states,
  List<CStateMachineTransition>? transitions,
}) :
  _states = states ?? {},
  _transitions = transitions ?? [];