invoke method

  1. @override
Object? invoke(
  1. NodeFlowActionIntent<T> intent
)
override

Dispatches the intent to the appropriate NodeFlow action.

Looks up the action by ID, checks if it can be executed, and invokes it.

Implementation

@override
Object? invoke(NodeFlowActionIntent<T> intent) {
  final action = controller.shortcuts.getAction(intent.actionId);
  if (action != null && action.canExecute(controller)) {
    return action.execute(controller, intent.context);
  }
  return null;
}