DemoMenuItem class

Represents a menu item in the app menu.

Constructors

DemoMenuItem(String name, {PageBuilder? page, List<DemoMenuItem> children = const []})

Properties

childrenLength int
no setter
expanded bool
Identifies whether it is expanded to display submenus.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
indent int
The indentation value according to the level in the tree hierarchy.
no setter
isChildrenEmpty bool
no setter
key GlobalKey<State<StatefulWidget>>
final
name String
The menu name.
final
page PageBuilder?
final
parent DemoMenuItem?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(DemoMenuItem menuItem) → void
childAt(int index) DemoMenuItem
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited