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),
  borderColor: .lerpColor(borderColor, other.borderColor, t),
  backgroundColor: .lerpColor(backgroundColor, other.backgroundColor, t),
  indicatorColor: .lerpColor(indicatorColor, other.indicatorColor, t),
  motion: motion.lerp(other.motion, t),
  labelPadding: .lerp(labelPadding, other.labelPadding, t) ?? labelPadding,
  descriptionPadding: .lerp(descriptionPadding, other.descriptionPadding, t) ?? descriptionPadding,
  errorPadding: .lerp(errorPadding, other.errorPadding, t) ?? errorPadding,
  childPadding: .lerp(childPadding, other.childPadding, t) ?? childPadding,
  labelTextStyle: .lerpTextStyle(labelTextStyle, other.labelTextStyle, t),
  descriptionTextStyle: .lerpTextStyle(descriptionTextStyle, other.descriptionTextStyle, t),
  errorTextStyle: .lerp(errorTextStyle, other.errorTextStyle, t) ?? errorTextStyle,
);