lerp method
Linearly interpolate between this and another FPopoverMenuStyle using the given factor t.
Implementation
@useResult
FPopoverMenuStyle lerp(FPopoverMenuStyle other, double t) => .new(
itemGroupStyle: itemGroupStyle.lerp(other.itemGroupStyle, t),
tileGroupStyle: tileGroupStyle.lerp(other.tileGroupStyle, t),
minWidth: lerpDouble(minWidth, other.minWidth, t) ?? minWidth,
maxWidth: lerpDouble(maxWidth, other.maxWidth, t) ?? maxWidth,
hoverEnterDuration: t < 0.5 ? hoverEnterDuration : other.hoverEnterDuration,
menuMotion: menuMotion.lerp(other.menuMotion, t),
hapticFeedback: t < 0.5 ? hapticFeedback : other.hapticFeedback,
decoration: .lerp(decoration, other.decoration, t) ?? decoration,
barrierFilter: t < 0.5 ? barrierFilter : other.barrierFilter,
backgroundFilter: t < 0.5 ? backgroundFilter : other.backgroundFilter,
popoverPadding: .lerp(popoverPadding, other.popoverPadding, t) ?? popoverPadding,
motion: motion.lerp(other.motion, t),
);