Fluent2ButtonSegment<T> class
One choice of a Fluent2SegmentedButton: its value, its words, an optional glyph before them.
Fluent2ButtonSegment('week', 'Week')
Constructors
- Fluent2ButtonSegment(T value, String label, {IconData? icon, bool enabled = true})
-
A segment for
value, labelledlabel.const
Properties
- enabled → bool
-
False draws the segment 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 segment's words.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T
-
The value the segment 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