WarcraftMenuAction class

Clickable menu action item.

Inheritance

Constructors

WarcraftMenuAction({required String label, VoidCallback? onSelected, bool enabled = true, Widget? leading, Widget? trailing})
Creates a WarcraftMenuAction with the given label and onSelected callback.
const

Properties

enabled bool
Whether this action can be selected. Defaults to true; disabled actions are shown but not tappable.
final
hashCode int
The hash code for this object.
no setterinherited
label String
The text shown for this action.
final
leading Widget?
Optional widget displayed before label.
final
onSelected VoidCallback?
Called when the user selects this action.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trailing Widget?
Optional widget displayed after label, such as a shortcut hint.
final

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