lerp method

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

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

Implementation

@useResult
FRadioStyle lerp(FRadioStyle other, double t) => .new(
  tappableStyle: tappableStyle.lerp(other.tappableStyle, t),
  focusedOutlineStyle: focusedOutlineStyle.lerp(other.focusedOutlineStyle, t),
  padding: .lerp(padding, other.padding, t) ?? padding,
  borderColor: .lerpColor(borderColor, other.borderColor, t),
  borderWidth: lerpDouble(borderWidth, other.borderWidth, t) ?? borderWidth,
  backgroundColor: .lerpColor(backgroundColor, other.backgroundColor, t),
  indicatorColor: .lerpColor(indicatorColor, other.indicatorColor, t),
  indicatorSize: lerpDouble(indicatorSize, other.indicatorSize, t) ?? indicatorSize,
  motion: motion.lerp(other.motion, t),
  leadingLabelStyle: leadingLabelStyle.lerp(other.leadingLabelStyle, t),
  trailingLabelStyle: trailingLabelStyle.lerp(other.trailingLabelStyle, t),
);