lerp method

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

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

Implementation

@useResult
FCheckboxMotion lerp(FCheckboxMotion other, double t) => FCheckboxMotion(
  fadeInDuration: t < 0.5 ? fadeInDuration : other.fadeInDuration,
  fadeOutDuration: t < 0.5 ? fadeOutDuration : other.fadeOutDuration,
  fadeInCurve: t < 0.5 ? fadeInCurve : other.fadeInCurve,
  fadeOutCurve: t < 0.5 ? fadeOutCurve : other.fadeOutCurve,
);