ButtonSegment<T> class

Data describing a segment of a SegmentedButton.

Constructors

ButtonSegment({required T value, Widget? icon, Widget? label, String? tooltip, bool enabled = true})
Construct a ButtonSegment.
const

Properties

enabled → bool
Determines if the segment is available for selection.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → Widget?
Optional icon displayed in the segment.
final
label → Widget?
Optional label displayed in the segment.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tooltip → String?
Optional tooltip for the segment
final
value → T
Value used to identify the segment.
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