lerp method

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

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

Implementation

@useResult
FProgressStyle lerp(FProgressStyle other, double t) => FProgressStyle(
  constraints: BoxConstraints.lerp(constraints, other.constraints, t) ?? constraints,
  trackDecoration: BoxDecoration.lerp(trackDecoration, other.trackDecoration, t) ?? trackDecoration,
  fillDecoration: BoxDecoration.lerp(fillDecoration, other.fillDecoration, t) ?? fillDecoration,
  motion: motion.lerp(other.motion, t),
);