lerp method
Linearly interpolate between this and another FItemStyle using the given factor t
.
Implementation
@useResult
FItemStyle lerp(FItemStyle other, double t) => FItemStyle(
backgroundColor: FWidgetStateMap.lerpWhere(backgroundColor, other.backgroundColor, t, Color.lerp),
margin: EdgeInsetsGeometry.lerp(margin, other.margin, t) ?? margin,
decoration: FWidgetStateMap.lerpWhere(decoration, other.decoration, t, BoxDecoration.lerp),
contentStyle: contentStyle.lerp(other.contentStyle, t),
rawItemContentStyle: rawItemContentStyle.lerp(other.rawItemContentStyle, t),
tappableStyle: tappableStyle.lerp(other.tappableStyle, t),
focusedOutlineStyle: t < 0.5 ? focusedOutlineStyle : other.focusedOutlineStyle,
);