GlassSegment<T> class

One choice: a tab bar's tab, which may have an icon, or a segment.

Annotations

Constructors

GlassSegment.new({required T value, required String label, IconData? icon})
Creates a choice that stands for value and reads label.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
An icon drawn above the label, as in an iOS tab bar.
final
label → String
The text shown for it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → T
What choosing this segment gives.
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