BarData class

Defines the Data of Each Individual Bar in a MultiBar group

Holds the Y-Value, label and styling for this BarData

Constructors

BarData.new({num? startYFrom, required num yValue, LabelMapper? label, ChartTextStyle? labelStyle = defaultChartTextStyle, BarDataStyle? barStyle, BarLabelPosition labelPosition = BarLabelPosition.insideBar})
Defines the Data of Each Individual Bar in a MultiBar group
const

Properties

barStyle BarDataStyle?
Styling for the Individual Bar in this BarData.
final
hashCode int
The hash code for this object.
no setterinherited
label LabelMapper?
Callback for the label along the Y-Axis in this BarData The Y-Value is provided as a param, and a string is to be returned
final
labelPosition BarLabelPosition
Determines the position of the Bar Label.
final
labelStyle ChartTextStyle?
Text Styling for the label.
final
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
startYFrom num?
The LowerBound Value of Y-Axis. Only useful to control the Height of the drawn Bar in Stack Arrangement.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
yValue num
The UpperBound Value that's to be plotted along the Y-Axis. This will be drawn as the Height of the Bar
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

Static Methods

lerp(BarData? current, BarData? target, double t) BarData
Lerps between two BarData values for a factor t
lerpBarDataList(List<BarData>? current, List<BarData> target, double t) List<BarData>
Lerps between two BarData Lists for a factor t