lerp method
Returns the value this variable has at the given animation clock value.
Implementation
@override
Rect lerp(double t) {
final s = customSprung.transform(t);
final fl = frontLoaded.transform(t);
final centerLoc = topTween.transform(s);
return Rect.fromLTWH(
centerLoc.dx,
centerLoc.dy,
widthTween.lerp(fl),
heightTween.lerp(fl),
);
}