MachineDoneHandler typedef
MachineDoneHandler =
FutureOr<TransitionMessageResult> Function(MessageContext msgCtx, CurrentState currentMachineState)
Type of function that is called when a nested state machine in a MachineState completes.
The function is provided the CurrentState of the nested state machine (which will refer to a final state in the nested machine), and a MessageContext that should be used to produce the return value that indicates which state to transition to now that the nested state machine has completed.
Implementation
typedef MachineDoneHandler = FutureOr<TransitionMessageResult> Function(
MessageContext msgCtx,
CurrentState currentMachineState,
);