lerp static method
Lerps a ScatterSpot based on t
value, check Tween.lerp.
Implementation
static ScatterSpot lerp(ScatterSpot a, ScatterSpot b, double t) {
return ScatterSpot(
lerpDouble(a.x, b.x, t)!,
lerpDouble(a.y, b.y, t)!,
show: b.show,
dotPainter: a.dotPainter.lerp(a.dotPainter, b.dotPainter, t),
);
}