Fluent2Option<T> class

One option of a listbox, Fluent's Option: the value it stands for, its label, a glyph before it (icon), a secondary word at its end; a disabled one (enabled false) is drawn in the disabled ink and never chosen.

Fluent2Option('design', 'Design review', icon: Fluent2Icons.people)
Annotations

Constructors

Fluent2Option(T value, String label, {IconData? icon, String? secondary, bool enabled = true})
An option for value, labelled label.
const

Properties

enabled → bool
False draws the option disabled; it cannot be chosen.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
The glyph before label; null shows none.
final
label → String
The option's words.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondary → String?
Quieter words at the option's end; null shows none.
final
value → T
The value the option stands for.
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