BarStack class

Represents a stack of bars in a chart.

A BarStack is a collection of bars displayed in a chart. It calculates the minimum and maximum values of the bars to determine its bounds.

Inheritance

Constructors

BarStack({required double x, required List<Bar> bars, double width = 8, BorderRadius borderRadius = BorderRadius.zero})
Creates a BarStack with the specified parameters.
const

Properties

bars List<Bar>
The list of bars in the stack.
final
borderRadius BorderRadius
The border radius of the bar stack.
final
bounds BoundingBox
The bounding box of the chart item.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
maxY double
Calculates the maximum Y value among the bars.
no setter
minY double
Calculates the minimum Y value among the bars.
no setter
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
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
width double
The width of the bar stack.
final
x double
The x-coordinate of the chart item.
finalinherited

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