PrismSegment<T> class

One option in a PrismSegmentedControl.

Annotations

Constructors

PrismSegment({required T value, required String label, IconData? icon, bool enabled = true, String? tooltip})
Creates a segment.
const

Properties

enabled → bool
Whether the segment can be picked.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
Optional leading icon.
final
label → String
Visible label.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tooltip → String?
Tooltip text; also used as the accessibility hint when the label is short.
final
value → T
The value this segment selects.
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