lerp method
Linearly interpolate between this and another FSidebarItemStyle using the given factor t
.
Implementation
@useResult
FSidebarItemStyle lerp(FSidebarItemStyle other, double t) => FSidebarItemStyle(
textStyle: FWidgetStateMap.lerpTextStyle(textStyle, other.textStyle, t),
iconSpacing: lerpDouble(iconSpacing, other.iconSpacing, t) ?? iconSpacing,
iconStyle: FWidgetStateMap.lerpIconThemeData(iconStyle, other.iconStyle, t),
collapsibleIconSpacing:
lerpDouble(collapsibleIconSpacing, other.collapsibleIconSpacing, t) ?? collapsibleIconSpacing,
collapsibleIconStyle: FWidgetStateMap.lerpIconThemeData(collapsibleIconStyle, other.collapsibleIconStyle, t),
childrenSpacing: lerpDouble(childrenSpacing, other.childrenSpacing, t) ?? childrenSpacing,
childrenPadding: EdgeInsetsGeometry.lerp(childrenPadding, other.childrenPadding, t) ?? childrenPadding,
backgroundColor: FWidgetStateMap.lerpColor(backgroundColor, other.backgroundColor, t),
padding: EdgeInsetsGeometry.lerp(padding, other.padding, t) ?? padding,
borderRadius: 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),
);