action method

void action(
  1. _MessageAction<M> action, [
  2. ActionResult actionResult = ActionResult.handled
])

Implementation

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