SelectableMenuItem<ItemType> class
A selectable MenuItem.
- Implemented types
Constructors
-
SelectableMenuItem({required ItemType value, ItemRenderer<
ItemType> itemRenderer = defaultItemRenderer, Icon? icon, MenuModel? subMenu, String tooltip = '', String secondaryLabel = '', String labelAnnotation = '', Iterable<String> ? cssClasses, MenuAction? action, ActionWithContext? actionWithContext, SelectableOption selectableState = SelectableOption.Selectable, bool? shouldSelectOnItemClick, MenuItemAffix? itemSuffix, ObservableList<MenuItemAffix> ? itemSuffixes}) - The constructor for a selectable MenuItem.
Properties
- action ↔ MenuAction?
-
getter/setter pair
- actionWithContext ↔ ActionWithContext?
-
getter/setter pairoverride-getter
- ariaChecked ↔ String?
-
getter/setter pair
- ariaLabel → String
-
no setteroverride
-
changes
→ Stream<
List< ChangeRecord> > -
Emits a list of changes when the state of the object changes.
no setterinherited
-
cssClasses
→ BuiltList<
String> -
Additional CSS classes to be attached to the root menu item element.
final
- enabled ↔ bool
-
getter/setter pairoverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasIcon → bool
-
no setteroverride
- hasObservers → bool
-
Whether
changes
has at least one active listener.no setterinherited - hasSecondaryLabel → bool
-
no setteroverride
- hasSubMenu → bool
-
no setteroverride
- icon → Icon
-
final
-
itemRenderer
→ ItemRenderer<
ItemType> -
Converts
ItemType
into a string.final -
itemSuffixes
→ ObservableList<
MenuItemAffix> -
List of rendered suffixes for this menu item.
final
- label → String
-
no setteroverride
- labelAnnotation → String
-
A superscript annotation that is shown to the right of the label.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryLabel → String
-
final
- selectableState ↔ SelectableOption
-
Display state of this menu item.
getter/setter pair
- shouldSelectOnItemClick → bool
-
If true, value is not selected when the menu item component is clicked.
final
- showTooltip → bool
-
no setteroverride
- subMenu → MenuModel
-
final
- tooltip → String
-
final
- uiDisplayName → String
-
no setteroverride
- uiIcon → Icon?
-
no setteroverride
- value → ItemType
-
Value of this item.
final
Methods
-
deliverChanges(
) → bool -
If
hasObservers
, synchronously emitschanges
that have been queued.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyChange(
[ChangeRecord? change]) → void -
Schedules
change
to be delivered.inherited -
notifyPropertyChange<
T> (Symbol field, T oldValue, T newValue) → T -
Notify that the
field
name of this object has been changed.inherited -
observed(
) → void -
May override to be notified when
changes
is first observed.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
unobserved(
) → void -
May override to be notified when
changes
is no longer observed.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited