lerp method
Linearly interpolate between this and another FTappableMotion using the given factor t
.
Implementation
@useResult
FTappableMotion lerp(FTappableMotion other, double t) => FTappableMotion(
bounceDownDuration: t < 0.5 ? bounceDownDuration : other.bounceDownDuration,
bounceUpDuration: t < 0.5 ? bounceUpDuration : other.bounceUpDuration,
bounceDownCurve: t < 0.5 ? bounceDownCurve : other.bounceDownCurve,
bounceUpCurve: t < 0.5 ? bounceUpCurve : other.bounceUpCurve,
bounceTween: t < 0.5 ? bounceTween : other.bounceTween,
);