EnhancedPlatformMenuItemGroup class
- Inheritance
-
- Object
- PlatformMenuItem
- PlatformMenuItemGroup
- EnhancedPlatformMenuItemGroup
Constructors
-
EnhancedPlatformMenuItemGroup({required List<
PlatformMenuItem> members})
Properties
-
descendants
→ List<
PlatformMenuItem> -
Returns all descendant PlatformMenuItems of this item.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- label → String
-
The required label used for rendering the menu item.
finalinherited
-
members
→ List<
PlatformMenuItem> -
The PlatformMenuItems that are members of this menu item group.
finalinherited
- onClose → VoidCallback?
-
Returns a callback, if any, to be invoked if the platform menu receives a
"Menu.closed" method call from the platform for this item.
no setterinherited
- onOpen → VoidCallback?
-
Returns a callback, if any, to be invoked if the platform menu receives a
"Menu.opened" method call from the platform for this item.
no setterinherited
- onSelected → VoidCallback?
-
An optional callback that is called when this PlatformMenuItem is
selected.
finalinherited
- onSelectedIntent → Intent?
-
An optional intent that is invoked when this PlatformMenuItem is
selected.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortcut → MenuSerializableShortcut?
-
The optional shortcut that selects this PlatformMenuItem.
finalinherited
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toChannelRepresentation(
PlatformMenuDelegate delegate, {required MenuItemSerializableIdGenerator getId}) → Iterable< Map< String, Object?> > -
Converts the representation of this item into a map suitable for sending
over the default "flutter/menu" channel used by DefaultPlatformMenuDelegate.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override