lerp method
Linearly interpolate between this and another FAccordionMotion using the given factor t
.
Implementation
@useResult
FAccordionMotion lerp(FAccordionMotion other, double t) => FAccordionMotion(
expandDuration: t < 0.5 ? expandDuration : other.expandDuration,
collapseDuration: t < 0.5 ? collapseDuration : other.collapseDuration,
expandCurve: t < 0.5 ? expandCurve : other.expandCurve,
collapseCurve: t < 0.5 ? collapseCurve : other.collapseCurve,
iconExpandCurve: t < 0.5 ? iconExpandCurve : other.iconExpandCurve,
iconCollapseCurve: t < 0.5 ? iconCollapseCurve : other.iconCollapseCurve,
revealTween: t < 0.5 ? revealTween : other.revealTween,
iconTween: t < 0.5 ? iconTween : other.iconTween,
);