RDropdownButtonState class final

Dropdown interaction state.

Contains the current overlay phase, selection, and highlight state. Uses indices instead of generic values — the component handles the mapping.

Annotations

Constructors

RDropdownButtonState({required ROverlayPhase overlayPhase, int? selectedIndex, Set<int>? selectedItemsIndices, int? highlightedIndex, bool isTriggerPressed = false, bool isTriggerHovered = false, bool isTriggerFocused = false, bool isDisabled = false})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
highlightedIndex → int?
Index of currently highlighted item in the menu (null if none).
final
isDisabled → bool
Whether the dropdown is disabled.
final
isOpen → bool
Whether the menu is currently visible (opening or open).
no setter
isTriggerFocused → bool
Whether the trigger has keyboard focus.
final
isTriggerHovered → bool
Whether the pointer is hovering over the trigger.
final
isTriggerPressed → bool
Whether the trigger button is pressed.
final
overlayPhase → ROverlayPhase
Current overlay lifecycle phase.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedIndex → int?
Index of currently selected item (null if none).
final
selectedItemsIndices → Set<int>?
Indices of selected items in the current menu (null when not applicable).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
toTriggerWidgetStates() → Set<WidgetState>
Convert trigger state to Flutter's WidgetState set.

Operators

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