lerp method

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

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

Implementation

@useResult
FSelectGroupStyle lerp(FSelectGroupStyle other, double t) => .new(
  checkboxStyle: checkboxStyle.lerp(other.checkboxStyle, t),
  radioStyle: radioStyle.lerp(other.radioStyle, t),
  itemPadding: .lerp(itemPadding, other.itemPadding, t) ?? itemPadding,
  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,
);