onMessage method

Future<SilentActionResult> onMessage(
  1. NodeSpec action,
  2. ActionContext context
)

Implementation

Future<SilentActionResult> onMessage(
    NodeSpec action, ActionContext context) async {
  Lowder.widgets.showMessage(
    type: action.props["type"] ?? "info",
    message: action.props["message"],
  );
  return SilentActionResult(true);
}