isEnabled method
- DismissIntent intent
override
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
@override
bool isEnabled(DismissIntent intent) {
return controller.isOpen;
}