MenuFlyoutItem class
The standard flyout item used inside a MenuFlyout
See also:
- MenuFlyout, which displays a list of commands or options
- MenuFlyoutSeparator, which represents a horizontal line that separates items in a MenuFlyout.
- MenuFlyoutSubItem, which represents a menu item that displays a sub-menu in a MenuFlyout
- Inheritance
-
- Object
- MenuFlyoutItemBase
- MenuFlyoutItem
- Implementers
Constructors
- MenuFlyoutItem({Key? key, Widget? leading, required Widget text, Widget? trailing, required VoidCallback? onPressed, bool selected = false})
- Creates a menu flyout item
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
finalinherited
- leading → Widget?
-
Displayed before text.
final
- onPressed → VoidCallback?
-
Called when the item is pressed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool
-
Whether this item is selected or not.
final
- text → Widget
-
The text displayed in this item.
final
- trailing → Widget?
-
Displayed after text.
final
Methods
-
build(
BuildContext context) → Widget -
override
-
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