RemixSegmentedControlItem<T extends Object> class
Declarative data for one option in a RemixSegmentedControl.
T must be non-nullable because null is reserved by the control as the
no-selection sentinel.
Constructors
- RemixSegmentedControlItem({required T value, String? label, IconData? icon, String? semanticLabel, bool enabled = true, FocusNode? focusNode, bool autofocus = false, SegmentedControlItemStyler style = const SegmentedControlItemStyler.create()})
-
const
Properties
- autofocus → bool
-
Whether this segment requests initial focus when the group mounts.
final
- enabled → bool
-
Whether this segment can receive focus and be activated.
final
- focusNode → FocusNode?
-
Optional caller-owned focus node.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
Optional icon shown before label.
final
- label → String?
-
Optional text shown in the segment.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String?
-
Accessibility label for this segment.
final
- style → SegmentedControlItemStyler
-
Per-item style merged after the control's default item style.
final
- value → T
-
The value selected when this segment is activated.
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