lerp method

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

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

Implementation

@useResult
FThemeMotion lerp(FThemeMotion other, double t) =>
    .new(duration: t < 0.5 ? duration : other.duration, curve: t < 0.5 ? curve : other.curve);