MenuState class
Immutable snapshot of the menu's current state.
Held by MenuController as a ValueNotifier value, so any change to the state triggers listeners (and therefore widget rebuilds).
- selectedItem — the item currently shown in the trigger bar.
- filteredItems — the subset of items visible in the dropdown (may be the full list or a search-filtered subset).
- isOverlayVisible — whether the dropdown overlay is currently showing.
- highlightedIndex — the index of the keyboard-highlighted item, or
nullif nothing is highlighted.
Constructors
Properties
-
filteredItems
→ List<
MenuItem> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightedIndex → int?
-
final
- isOverlayVisible → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedItem → MenuItem
-
final
Methods
-
copyWith(
{MenuItem? selectedItem, List< MenuItem> ? filteredItems, bool? isOverlayVisible, int? highlightedIndex, bool clearHighlight = false}) → MenuState -
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