lerp method

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

Implementation

@useResult
FSelectScrollHandleStyle lerp(FSelectScrollHandleStyle other, double t) => FSelectScrollHandleStyle(
  iconStyle: IconThemeData.lerp(iconStyle, other.iconStyle, t),
  background: Color.lerp(background, other.background, t) ?? background,
  enterDuration: t < 0.5 ? enterDuration : other.enterDuration,
  pixelsPerSecond: lerpDouble(pixelsPerSecond, other.pixelsPerSecond, t) ?? pixelsPerSecond,
);