action method
Implementation
void action(
_MessageAction<M> action, [
ActionResult actionResult = ActionResult.handled,
]) {
_handler = _StayOrUnhandledDescriptor.createForMessage<M>(
_forState,
action,
action.label,
_messageName,
handled: actionResult == ActionResult.handled,
);
}