isEnabled method

bool isEnabled(
  1. T intent
)

Returns true if the action is enabled and is ready to be invoked.

This will be called by the ActionDispatcher before attempting to invoke the action.

If the action's enable state depends on a BuildContext, subclass ContextAction instead of Action.

Implementation

bool isEnabled(T intent) => isActionEnabled;