onDone<E extends AutomataEvent> abstract method
Sets callback that will bne called when:
- for a StateNodeType.compound - a child final substate is activated.
- for a StateNodeType.parallel - all sub-states are in final states.
Implementation
void onDone<E extends AutomataEvent>({required List<Action<E>> actions});