lerp method
Linearly interpolate between this and another FTooltipStyle using the given factor t.
Implementation
@useResult
FTooltipStyle lerp(FTooltipStyle other, double t) => .new(
decoration: .lerp(decoration, other.decoration, t) ?? decoration,
backgroundFilter: t < 0.5 ? backgroundFilter : other.backgroundFilter,
padding: .lerp(padding, other.padding, t) ?? padding,
textStyle: .lerp(textStyle, other.textStyle, t) ?? textStyle,
hapticFeedback: t < 0.5 ? hapticFeedback : other.hapticFeedback,
motion: motion.lerp(other.motion, t),
hoverEnterDuration: t < 0.5 ? hoverEnterDuration : other.hoverEnterDuration,
hoverExitDuration: t < 0.5 ? hoverExitDuration : other.hoverExitDuration,
longPressExitDuration: t < 0.5 ? longPressExitDuration : other.longPressExitDuration,
);