lerp method

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

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

Implementation

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