goToSelf method
Indicates that the message has been handled, and that a self transition should occur.
During a self-transition this state will be exited and re-entered.
If action is provided, this action will be invoked before the transition occurs. The act
builder can be used to specify this action.
If transitionAction is specified, this function will be called during the transition
between states, after all states are exited, but before entering any new states.
Implementation
void goToSelf({
TransitionHandler? transitionAction,
_MessageAction<M>? action,
String? label,
}) {
_handler = _GoToSelfDescriptor.createForMessage<M>(
transitionAction,
action,
label,
_messageName,
);
}