ButtonSegment<T> class

Data describing a segment of a SegmentedButton.

Constructors

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

Properties

enabled bool
Determines if the segment is available for selection.
final
hashCode int
The hash code for this object.
read-onlyinherited
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.
read-onlyinherited
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