MinimalToggleItem<T> class

One toggle of a MinimalToggleGroup: the value it stands for, its label, a 16 px icon, or both. An icon alone needs a semanticLabel.

MinimalToggleItem('bold', icon: LucideIcons.bold, semanticLabel: 'Bold')
Annotations

Constructors

MinimalToggleItem(T value, {String? label, IconData? icon, String? semanticLabel, bool enabled = true})
A toggle for value.
const

Properties

enabled → bool
Whether it can be pressed.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
A glyph before the words, or alone.
final
label → String?
The toggle's words.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
What a screen reader calls it; the label unstated.
final
value → T
What turning this toggle on reports.
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