lerp method
Linearly interpolate between this and another FToasterStyle using the given factor t
.
Implementation
@useResult
FToasterStyle lerp(FToasterStyle other, double t) => FToasterStyle(
max: lerpDouble(max, other.max, t) ?? max,
padding: EdgeInsetsGeometry.lerp(padding, other.padding, t) ?? padding,
expandBehavior: t < 0.5 ? expandBehavior : other.expandBehavior,
expandHoverEnterDuration: t < 0.5 ? expandHoverEnterDuration : other.expandHoverEnterDuration,
expandHoverExitDuration: t < 0.5 ? expandHoverExitDuration : other.expandHoverExitDuration,
expandStartSpacing: lerpDouble(expandStartSpacing, other.expandStartSpacing, t) ?? expandStartSpacing,
expandSpacing: lerpDouble(expandSpacing, other.expandSpacing, t) ?? expandSpacing,
collapsedProtrusion: lerpDouble(collapsedProtrusion, other.collapsedProtrusion, t) ?? collapsedProtrusion,
collapsedScale: lerpDouble(collapsedScale, other.collapsedScale, t) ?? collapsedScale,
motion: motion.lerp(other.motion, t),
toastAlignment: t < 0.5 ? toastAlignment : other.toastAlignment,
toastStyle: toastStyle.lerp(other.toastStyle, t),
);