lerp method

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

Implementation

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