MenuFlyoutSubItem class
Represents a menu item that displays a sub-menu in a MenuFlyout.
See also:
- MenuFlyout, which displays a list of commands or options
- MenuFlyoutItem, a single item in the list of items
- MenuFlyoutSeparator, which represents a horizontal line that separates items in a MenuFlyout.
- Inheritance
-
- Object
- MenuFlyoutItemBase
- MenuFlyoutItem
- MenuFlyoutSubItem
Constructors
- MenuFlyoutSubItem({Key? key, Widget? leading, required Widget text, Widget? trailing = const Icon(FluentIcons.chevron_right), required MenuItemsBuilder items, SubItemShowBehavior showBehavior = SubItemShowBehavior.hover, Duration showHoverDelay = const Duration(milliseconds: 450)})
- Creates a menu flyout sub item
Properties
- disableAcyrlic ↔ bool
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- items → MenuItemsBuilder
-
The colletion used to generate the content of the menu.
final
- key → Key?
-
finalinherited
- leading → Widget?
-
Displayed before text.
finalinherited
- onPressed → VoidCallback?
-
Called when the item is pressed.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool
-
Whether this item is selected or not.
finalinherited
- showBehavior → SubItemShowBehavior
-
Represent which user action will show the sub-menu.
final
- showHoverDelay → Duration
-
The sub-menu will be only shown after this delay
final
- text → Widget
-
The text displayed in this item.
finalinherited
- trailing → Widget?
-
Displayed after text.
finalinherited
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