isEnabled method

  1. @override
bool isEnabled(
  1. NodeFlowActionIntent<T> intent
)
override

Checks if the action specified in the intent can currently be executed.

Looks up the action by ID and checks its canExecute status.

Implementation

@override
bool isEnabled(NodeFlowActionIntent<T> intent) {
  final action = controller.shortcuts.getAction(intent.actionId);
  return action?.canExecute(controller) ?? false;
}