MenuItem class abstract
The base type for an individual menu item that can be shown in a menu.
- Implementers
Constructors
Properties
- channel ↔ MethodChannel?
-
getter/setter pair
- checked ↔ bool
-
Whether or not the menu item is checked.
getter/setter pair
- enabled ↔ bool
-
Whether or not the menu item is enabled.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- image ↔ String?
-
getter/setter pair
- imageAbsolutePath ↔ String?
-
getter/setter pair
- label ↔ String
-
getter/setter pair
-
getter/setter pair
-
getter/setter pair
- name ↔ String?
-
getter/setter pair
- onClicked → MenuItemSelectedCallback?
-
The callback to call whenever the menu item is selected.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setCheck(
bool checked) → Future< void> -
setEnable(
bool enabled) → Future< void> -
setImage(
String image) → Future< void> -
setLabel(
String label) → Future< void> -
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited