Segment class

An object representing a segment of SegmentedBar.

Annotations

Constructors

Segment({required int value, required Color color, Text? label, Text? valueLabel})
Creates a segment.
const

Properties

color Color
The color of the segment.
final
hashCode int
The hash code for this object.
no setteroverride
label Text?
A text explaining what the segment means.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
Describes the amount of space the segment occupies in a SegmentedBar.
final
valueLabel Text
A formatted value of the segment.
no setter

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.
override