initialize method

void initialize()

Loads the initial states based on root.initialTransition or the first child of the root.

Implementation

void initialize() {
  final initialTransition =
      root.initialTransition ?? NonEventTransition.toDefaultState(root);
  _currentStep = executeTransitions([initialTransition]);
}