ChoiceMenuExtension<T> extension
Extends Choice with grouping/selection helpers used by the menu list.
Keeps the per-item logic (group title detection, selection lookup, etc.) out of widget build methods so the rendering code stays declarative.
- on
-
- Choice<
T>
- Choice<
Properties
- isGroupingTitle → bool
-
Available on Choice<
A choice acts as a grouping title when it has no key.T> , provided by the ChoiceMenuExtension extensionno setter
Methods
-
isFirstSelectedIn(
List< Choice< selectedChoice) → boolT> > -
Available on Choice<
Whether this choice occupies the first slot inT> , provided by the ChoiceMenuExtension extensionselectedChoice. -
isSelectedIn(
List< Choice< selectedChoice) → boolT> > -
Available on Choice<
Whether this choice is currently selected withinT> , provided by the ChoiceMenuExtension extensionselectedChoice.