lerp method
Linearly interpolate between this and another FItemStyle using the given factor t.
Implementation
@useResult
FItemStyle lerp(FItemStyle other, double t) => .new(
shape: t < 0.5 ? shape : other.shape,
backgroundColor: .lerpWhere(backgroundColor, other.backgroundColor, t, Color.lerp),
padding: .lerp(padding, other.padding, t) ?? padding,
contentDecoration: .lerpDecoration(contentDecoration, other.contentDecoration, t),
contentStyle: contentStyle.lerp(other.contentStyle, t),
rawContentStyle: rawContentStyle.lerp(other.rawContentStyle, t),
tappableStyle: tappableStyle.lerp(other.tappableStyle, t),
focusedOutlineStyle: t < 0.5 ? focusedOutlineStyle : other.focusedOutlineStyle,
);