AnimatedSeriesValue class
Holds the current interpolated state between oldValues and newValues.
Painters read currentValues rather than raw data during a morph animation.
final animated = AnimatedSeriesValue(
oldValues: previousData,
newValues: currentData,
);
// In paint():
final vals = animated.evaluate(animProgress);
for (int i = 0; i < vals.length; i++) {
_drawBar(i, vals[i]);
}
Constructors
-
AnimatedSeriesValue({required List<
double> oldValues, required List<double> newValues}) -
const
Properties
Methods
-
evaluate(
double t) → List< double> -
Interpolated values at
tin0..1. -
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