CsSegmentedControlOption class
One segment of a CsSegmentedControl (Cloudscape Option).
- Annotations
Constructors
- CsSegmentedControlOption({required String id, String? text, CsIconData? icon, Widget? iconWidget, String? iconAlt, bool disabled = false, String? disabledReason})
-
const
Properties
- disabled → bool
-
final
- disabledReason → String?
-
Shown in a tooltip on hover and focus of a disabled segment, which
stays focusable so keyboard users can read it.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → CsIconData?
-
Icon before the text, or alone (Cloudscape
iconName).final - iconAlt → String?
-
Accessible name of an icon-only segment. Required when there is no
text.
final
- iconWidget → Widget?
-
Custom icon in place of icon (Cloudscape
iconSvg/iconUrl).final - id → String
-
Reported in
onChangewhen the segment is picked.final - label → String
-
The name used for the segment in the select shown on narrow screens.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String?
-
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