onLinkToAction method
Implementation
Future<ActionResult> onLinkToAction(
NodeSpec action, ActionContext context) async {
final actionId = action.props["action"];
if (actionId == null || actionId is! String || actionId.isEmpty) {
return ActionResult(false);
}
return ActionResult(true, nextAction: Schema.getAction(actionId)?.toMap());
}