stay method
void
stay({
- _MessageAction<
M> ? action,
Indicates that the message has been handled, and no state transition should occur.
If action is provided, this action will be invoked as the message is being handled. The
act builder can be used to specify this action.
Implementation
void stay({_MessageAction<M>? action}) {
_handler = _StayOrUnhandledDescriptor.createForMessage<M>(
_forState,
action,
action?.label,
_messageName,
handled: true,
);
}