lerp method

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

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

Implementation

@useResult
FSliderThumbStyle lerp(FSliderThumbStyle other, double t) => FSliderThumbStyle(
  color: FWidgetStateMap.lerpColor(color, other.color, t),
  borderColor: FWidgetStateMap.lerpColor(borderColor, other.borderColor, t),
  borderWidth: lerpDouble(borderWidth, other.borderWidth, t) ?? borderWidth,
  focusedOutlineStyle: focusedOutlineStyle.lerp(other.focusedOutlineStyle, t),
);