lerp method
Linearly interpolate between this and another FToastStyle using the given factor t.
Implementation
@useResult
FToastStyle lerp(FToastStyle other, double t) => .new(
constraints: .lerp(constraints, other.constraints, t) ?? constraints,
decoration: .lerp(decoration, other.decoration, t) ?? decoration,
backgroundFilter: t < 0.5 ? backgroundFilter : other.backgroundFilter,
padding: .lerp(padding, other.padding, t) ?? padding,
iconStyle: .lerp(iconStyle, other.iconStyle, t),
iconSpacing: lerpDouble(iconSpacing, other.iconSpacing, t) ?? iconSpacing,
titleTextStyle: .lerp(titleTextStyle, other.titleTextStyle, t) ?? titleTextStyle,
titleSpacing: lerpDouble(titleSpacing, other.titleSpacing, t) ?? titleSpacing,
descriptionTextStyle: .lerp(descriptionTextStyle, other.descriptionTextStyle, t) ?? descriptionTextStyle,
suffixSpacing: lerpDouble(suffixSpacing, other.suffixSpacing, t) ?? suffixSpacing,
motion: motion.lerp(other.motion, t),
);