execute method
Finds and executes transitions matching the given conditions, returning
true
if anything matched.
May execute additional transitions where Transition.condition matches.
anEvent
The event name to match.
elapsedTime
The time to match.
Implementation
bool execute({String? anEvent, Duration? elapsedTime}) {
final transitions = getTransitions(_currentStep, anEvent, elapsedTime);
_currentStep = executeTransitions(transitions);
return transitions.isNotEmpty;
}