PerformableAction class

An action which can be performed.

Constructors

PerformableAction({required String name, VoidCallback? invoke, SingleActivator? activator, bool? checked, bool? closeMenu})
Create an instance.
const

Properties

activator → SingleActivator?
The key to use to perform this action.
final
checked → bool?
Whether the resulting menu item should be selected.
final
closeMenu → bool?
Whether to close the menu when this item is activated from the menu.
final
hashCode → int
The hash code for this object.
no setterinherited
invoke → VoidCallback?
The function to call when this action is performed.
final
name → String
The name of this action.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited