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

hashCode int
The hash code for this object.
no setterinherited
newValues List<double>
final
oldValues List<double>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

evaluate(double t) List<double>
Interpolated values at t in 0..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