BackgroundBarChartRodData class
Holds values to draw a rod in rear of the main rod.
If you want to have a bar drawn in rear of the main rod, use BarChartRodData.backDrawRodData, it uses to have a bar with a passive color in rear of the rod, for example you can use it as the maximum value place holder in rear of your rod.
Constructors
Properties
- color → Color?
-
If provided, Background draws with this color
Otherwise we use gradient to draw the background.
It throws an exception if you provide both color and gradient
final
- fromY → double
-
fromY is where background starts to show
final
- gradient → Gradient?
-
If provided, background draws with this gradient.
Otherwise we use color to draw the background.
It throws an exception if you provide both color and gradient
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
- show → bool
-
Determines to show or hide this
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - toY → double
-
background starts to show from fromY to toY
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(
BackgroundBarChartRodData a, BackgroundBarChartRodData b, double t) → BackgroundBarChartRodData -
Lerps a BackgroundBarChartRodData based on
t
value, check Tween.lerp.