PlutoMenuItem class
Constructors
-
PlutoMenuItem({Object? id, required String title, IconData? icon, bool enable = true, dynamic onTap()?, List<
PlutoMenuItem> ? children}) - Button type menu item.
-
PlutoMenuItem.checkbox({Object? id, required String title, IconData? icon, bool enable = false, void onTap()?, List<
PlutoMenuItem> ? children, void onChanged(bool?)?, bool? initialCheckValue}) -
A menu item of type checkbox.
factory
- PlutoMenuItem.divider({double height = 16.0, Color? color, double? indent, double? endIndent, double? thickness})
-
A menu item of type Divider.
factory
-
PlutoMenuItem.radio({Object? id, required String title, IconData? icon, bool enable = false, void onTap()?, required List<
Object> radioItems, void onChanged(Object?)?, String getTitle(Object)?, Object? initialRadioValue}) -
A menu item of type radio button.
factory
- PlutoMenuItem.widget({Object? id, required Widget widget, bool enable = false, void onTap()?})
-
A menu item of type Widget.
factory
Properties
-
children
→ List<
PlutoMenuItem> ? -
Passing
PlutoMenuItem
to a List creates a sub-menu.final - enable → bool
-
final
- hasChildren → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
final
- id ↔ Object?
-
Set a unique ID for the menu widget.
getter/setter pair
- isBack → bool
-
no setter
-
key
→ GlobalKey<
State< StatefulWidget> > -
no setter
- onTap → (dynamic Function()?)
-
Callback executed when a menu is tapped
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
Menu title
final
- type → PlutoMenuItemType
-
no setter
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