lerp method

  1. @useResult
FToasterMotion lerp(
  1. FToasterMotion other,
  2. double t
)

Linearly interpolate between this and another FToasterMotion using the given factor t.

Implementation

@useResult
FToasterMotion lerp(FToasterMotion other, double t) => FToasterMotion(
  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,
);