Bar class

Represents a bar with specific values and styling properties.

Constructors

Bar({required double fromValue, required double toValue, required Color color, Color? highlightColor, double? width, BorderRadius borderRadius = BorderRadius.zero})
Constructs a new Bar instance.
const

Properties

borderRadius BorderRadius
The border radius of the bar.
final
color Color
The color of the bar.
final
fromValue double
The starting value of the bar.
final
hashCode int
The hash code for this object.
no setterinherited
highlightColor Color?
The highlight color of the bar (nullable).
final
maxValue double
Calculates the maximum value between fromValue and toValue.
no setter
minValue double
Calculates the minimum value between fromValue and toValue.
no setter
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
toValue double
The ending value of the bar.
final
width double?
The width of the bar (nullable).
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