action method

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

Implementation

void action(
  _ContinuationMessageActionWithData<M, D, T> action, [
  ActionResult actionResult = ActionResult.handled,
]) {
  _continuationHandler = _ContinuationStayOrUnhandledDescriptor.createForMessageAndData<M, D, T>(
    _forState,
    action,
    action.label,
    null,
    handled: actionResult == ActionResult.handled,
  );
}