isDone property
bool
get
isDone
Returns true if the state machine has ended.
A state machine is done when a final state is entered. This may have occurred because transition to a final state has occurred as result of processing a message, or because stop was called.
Implementation
bool get isDone => _machine.currentLeaf?.isFinalLeaf ?? false;