copyOldSegmentValues method
void
copyOldSegmentValues()
override
Implementation
@override
void copyOldSegmentValues(
double seriesAnimationFactor, double segmentAnimationFactor) {
if (series.animationType == AnimationType.loading) {
points.clear();
_oldSegmentRect = null;
segmentRect = null;
return;
}
if (series.animationDuration > 0) {
_oldSegmentRect =
Rect.lerp(_oldSegmentRect, segmentRect, segmentAnimationFactor);
} else {
_oldSegmentRect = segmentRect;
}
}