MachineDisposedHandler typedef

MachineDisposedHandler = FutureOr<TransitionMessageResult> Function(MessageContext msgCtx)

Type of function that is called when the nested state machine in a MachineState is disposed.

The function is provided a MessageContext that should be used to produce the return value that indicates which state to transition to, now that the nested state machine is disposed.

Implementation

typedef MachineDisposedHandler = FutureOr<TransitionMessageResult> Function(
  MessageContext msgCtx,
);