lerp method
Linearly interpolate between this and another FSidebarItemStyle using the given factor t.
Implementation
@useResult
FSidebarItemStyle lerp(FSidebarItemStyle other, double t) => .new(
textStyle: .lerpTextStyle(textStyle, other.textStyle, t),
iconSpacing: lerpDouble(iconSpacing, other.iconSpacing, t) ?? iconSpacing,
iconStyle: .lerpIconThemeData(iconStyle, other.iconStyle, t),
collapsibleIconSpacing:
lerpDouble(collapsibleIconSpacing, other.collapsibleIconSpacing, t) ?? collapsibleIconSpacing,
collapsibleIconStyle: .lerpIconThemeData(collapsibleIconStyle, other.collapsibleIconStyle, t),
childrenSpacing: lerpDouble(childrenSpacing, other.childrenSpacing, t) ?? childrenSpacing,
childrenPadding: .lerp(childrenPadding, other.childrenPadding, t) ?? childrenPadding,
backgroundColor: .lerpColor(backgroundColor, other.backgroundColor, t),
padding: .lerp(padding, other.padding, t) ?? padding,
borderRadius: .lerp(borderRadius, other.borderRadius, t) ?? borderRadius,
tappableStyle: tappableStyle.lerp(other.tappableStyle, t),
focusedOutlineStyle: focusedOutlineStyle.lerp(other.focusedOutlineStyle, t),
motion: motion.lerp(other.motion, t),
);