lerp method
Linearly interpolate between this and another FTextFieldStyle using the given factor t.
Implementation
@useResult
FTextFieldStyle lerp(FTextFieldStyle other, double t) => .new(
keyboardAppearance: t < 0.5 ? keyboardAppearance : other.keyboardAppearance,
color: .lerpWhere(color, other.color, t, Color.lerp),
cursorColor: FColors.lerpColor(cursorColor, other.cursorColor, t) ?? cursorColor,
contentPadding: .lerp(contentPadding, other.contentPadding, t) ?? contentPadding,
clearButtonPadding: .lerp(clearButtonPadding, other.clearButtonPadding, t) ?? clearButtonPadding,
obscureButtonPadding: .lerp(obscureButtonPadding, other.obscureButtonPadding, t) ?? obscureButtonPadding,
scrollPadding: .lerp(scrollPadding, other.scrollPadding, t) ?? scrollPadding,
iconStyle: .lerpIconThemeData(iconStyle, other.iconStyle, t),
clearButtonStyle: clearButtonStyle.lerp(other.clearButtonStyle, t),
obscureButtonStyle: obscureButtonStyle.lerp(other.obscureButtonStyle, t),
contentTextStyle: .lerpTextStyle(contentTextStyle, other.contentTextStyle, t),
hintTextStyle: .lerpTextStyle(hintTextStyle, other.hintTextStyle, t),
counterTextStyle: .lerpTextStyle(counterTextStyle, other.counterTextStyle, t),
border: t < 0.5 ? border : other.border,
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,
labelMotion: labelMotion.lerp(other.labelMotion, t),
labelTextStyle: .lerpTextStyle(labelTextStyle, other.labelTextStyle, t),
descriptionTextStyle: .lerpTextStyle(descriptionTextStyle, other.descriptionTextStyle, t),
errorTextStyle: .lerpTextStyle(errorTextStyle, other.errorTextStyle, t),
);