LineChartStepData class

Holds data for representing a Step Line Chart, and works only if LineChartBarData.isStepChart is true.

Constructors

LineChartStepData({double stepDirection = stepDirectionMiddle})
Determines the stepDirection of each step;
const

Properties

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
stepDirection double
Determines the direction of each step;
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

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(LineChartStepData a, LineChartStepData b, double t) LineChartStepData
Lerps a LineChartStepData based on t value, check Tween.lerp.

Constants

stepDirectionBackward → const double
Go to the next spot y and direct line to the next spot.
stepDirectionForward → const double
Go to the next spot directly, with the current point's y value.
stepDirectionMiddle → const double
Go to the half with the current spot y, and with the next spot y for the rest.