lerpTo method
Interpolate between this and next using interpolation factor t (0.0 to 1.0)
Implementation
@override
ISparklinesData lerpTo(ISparklinesData next, double t) {
if (next is! BetweenLineData) return next;
if (visible != next.visible) return next;
return BetweenLineData(
visible: next.visible,
rotation: next.rotation,
origin: Offset.lerp(origin, next.origin, t) ?? next.origin,
layout: next.layout,
crop: next.crop,
from: from.lerpTo(next.from, t) as LineData,
to: to.lerpTo(next.to, t) as LineData,
areaColor: Color.lerp(areaColor, next.areaColor, t)!,
areaGradient: Gradient.lerp(areaGradient, next.areaGradient, t),
areaFillType: next.areaFillType
);
}