lerp method
Linearly interpolate between this and another FMultiSelectFieldStyle using the given factor t.
Implementation
@useResult
FMultiSelectFieldStyle lerp(FMultiSelectFieldStyle other, double t) => .new(
decoration: t < 0.5 ? decoration : other.decoration,
contentPadding: .lerp(contentPadding, other.contentPadding, t) ?? contentPadding,
spacing: lerpDouble(spacing, other.spacing, t) ?? spacing,
runSpacing: lerpDouble(runSpacing, other.runSpacing, t) ?? runSpacing,
hintTextStyle: .lerpTextStyle(hintTextStyle, other.hintTextStyle, t),
hintPadding: .lerp(hintPadding, other.hintPadding, t) ?? hintPadding,
iconStyle: .lerp(iconStyle, other.iconStyle, t),
clearButtonStyle: clearButtonStyle.lerp(other.clearButtonStyle, t),
clearButtonPadding: .lerp(clearButtonPadding, other.clearButtonPadding, t) ?? clearButtonPadding,
tappableStyle: tappableStyle.lerp(other.tappableStyle, 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,
);