SelectOption class

Represents a selectable option in Select, Radio, or SelectBoxes components.

Annotations

Constructors

SelectOption({required String label, required dynamic value, bool disabled = false, Map<String, dynamic> raw = const {}})
const
SelectOption.fromJson(dynamic json)
factory

Properties

disabled → bool
Optional disabled state for this specific option.
final
hashCode → int
The hash code for this object.
no setteroverride
label → String
The user-facing display text.
final
raw → Map<String, dynamic>
Optional raw JSON or extra metadata.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
The underlying stored value.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override