CsOption class
One option (Cloudscape OptionDefinition).
const CsOption(
value: 'i-0abc123',
label: 'web-server-1',
description: 't3.micro',
labelTag: 'Running',
tags: ['us-east-1a', '2 vCPU'],
icon: CsIcons.settings,
)
Components compare options by value.
- Inheritance
-
- Object
- CsOptionItem
- CsOption
- Annotations
Constructors
Properties
- description → String?
-
Secondary text under the label, in small text.
final
- disabled → bool
-
final
- disabledReason → String?
-
Why the option is disabled, shown in a tooltip.
final
-
filteringTags
→ List<
String> ? -
Extra words the filter matches but the option does not show unless they
match (Cloudscape
filteringTags).final - hashCode → int
-
The hash code for this object.
no setterinherited
- icon → CsIconData?
-
Leading icon (Cloudscape
iconName).final - iconAriaLabel → String?
-
Accessible name of the icon (Cloudscape
iconAriaLabel/iconAlt).final - iconWidget → Widget?
-
Any widget in the icon slot (Cloudscape
iconUrl/iconSvg).final - label → String?
-
final
- labelContent → Widget?
-
Custom content in place of the label (Cloudscape
labelContent).final - labelTag → String?
-
Short text at the end of the label row, such as a count or a status.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Small text tags under the label and description.
final
- text → String
-
The label, or the value when there is no label.
no setter
- value → String
-
Identifies the option. Shown when there is no label.
final
Methods
-
matches(
String lowerText, {bool strict = false}) → bool -
Whether any searchable field contains
lowerText(already lowercase).strictonly matches at the start of a field. -
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