BarChartRodStackItem class
A colored section of Stacked Chart rod item
Each BarChartRodData can have a list of BarChartRodStackItem (with different colors and position) to represent a Stacked Chart rod,
Constructors
- BarChartRodStackItem(double fromY, double toY, Color color, [BorderSide borderSide = Utils.defaultBorderSide])
-
Renders a section of Stacked Chart from
fromY
totoY
withcolor
for example if you want to have a Stacked Chart with three colors:
Properties
- borderSide → BorderSide
-
Renders border stroke for a Stacked Chart section
final
- color → Color
-
Renders a Stacked Chart section with color
final
- fromY → double
-
Renders a Stacked Chart section from fromY
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object?> -
Used for equality check, see
EquatableMixin
.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 - toY → double
-
Renders a Stacked Chart section to toY
final
Methods
-
copyWith(
{double? fromY, double? toY, Color? color, BorderSide? borderSide}) → BarChartRodStackItem - Copies current BarChartRodStackItem to a new BarChartRodStackItem, and replaces provided values.
-
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(
BarChartRodStackItem a, BarChartRodStackItem b, double t) → BarChartRodStackItem -
Lerps a BarChartRodStackItem based on
t
value, check Tween.lerp.