lerp method
Linearly interpolate between this and another FDateTimePickerStyle using the given factor t.
Implementation
@useResult
FDateTimePickerStyle lerp(FDateTimePickerStyle other, double t) => .new(
dateFlex: t < 0.5 ? dateFlex : other.dateFlex,
hourFlex: t < 0.5 ? hourFlex : other.hourFlex,
minuteFlex: t < 0.5 ? minuteFlex : other.minuteFlex,
periodFlex: t < 0.5 ? periodFlex : other.periodFlex,
padding: .lerp(padding, other.padding, t) ?? padding,
diameterRatio: lerpDouble(diameterRatio, other.diameterRatio, t) ?? diameterRatio,
squeeze: lerpDouble(squeeze, other.squeeze, t) ?? squeeze,
magnification: lerpDouble(magnification, other.magnification, t) ?? magnification,
overAndUnderCenterOpacity:
lerpDouble(overAndUnderCenterOpacity, other.overAndUnderCenterOpacity, t) ?? overAndUnderCenterOpacity,
spacing: lerpDouble(spacing, other.spacing, t) ?? spacing,
textStyle: .lerp(textStyle, other.textStyle, t) ?? textStyle,
textHeightBehavior: t < 0.5 ? textHeightBehavior : other.textHeightBehavior,
selectionHeightAdjustment:
lerpDouble(selectionHeightAdjustment, other.selectionHeightAdjustment, t) ?? selectionHeightAdjustment,
selectionDecoration: .lerp(selectionDecoration, other.selectionDecoration, t) ?? selectionDecoration,
focusedOutlineStyle: focusedOutlineStyle.lerp(other.focusedOutlineStyle, t),
hapticFeedback: t < 0.5 ? hapticFeedback : other.hapticFeedback,
);