SubMenu class
A menu item continaing a submenu.
The item itself can't be selected, it just displays the submenu.
- Inheritance
-
- Object
- MenuItemBase
- SubMenu
Constructors
-
SubMenu({required String label, required List<
MenuItemBase> children}) -
Creates a new submenu with the given
label
and children.
Properties
-
children
→ List<
MenuItemBase> -
The menu items contained in the submenu.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The displayed label for the menu item.
finalinherited
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