lerp method

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

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

Implementation

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