CarpenterSelectionButtonOption<T> class
final
Descriptor for one choice in a controlled CarpenterSelectionButtonGroup.
- Annotations
Constructors
- CarpenterSelectionButtonOption({required T value, required String label, CarpenterIconSource? icon, bool enabled = true, String? semanticLabel})
-
Creates a choice with an application-owned
value, visible label, and optional icon.const
Properties
- enabled → bool
-
Whether this option can be selected. The whole group is also disabled
when its callback is null.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → CarpenterIconSource?
-
Optional icon shown on this option's toggle button.
final
- label → String
-
Visible text naming the control or choice; keep it meaningful without
relying on an icon.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String?
-
Accessible name supplied to assistive technology. When omitted, the
visible label is used.
final
- value → T
-
Value delivered when this option is selected; keep option values
distinct.
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited