NativeMenuItem class
Constructors
- NativeMenuItem.separator()
- NativeMenuItem.simple({required String title, String? action, bool isEnable = true, NativeMenu? subMenu})
- NativeMenuItem.withIcon({required String title, String? action, bool isEnable = true, required String? icon, NativeMenu? subMenu})
- NativeMenuItem.withRawIcon({required String title, String? action, bool isEnable = true, required Uint8List? rawIcon, NativeMenu? subMenu})
Properties
- action → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → String?
-
final
- isEnable → bool
-
final
- rawIcon → Uint8List?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subMenu ↔ NativeMenu?
-
getter/setter pair
- title → String
-
final
- type → MenuItemType
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setSubMenu(
NativeMenu subMenu) → void -
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited