lerp static method
Linearly interpolate between two ToggleIconStyle objects.
Implementation
static ToggleIconStyle? lerp(
ToggleIconStyle? a, ToggleIconStyle? b, double t) {
if (a == null && b == null) return null;
return ToggleIconStyle(
size: lerpDouble(a?.size, b?.size, t),
color: Color.lerp(a?.color, b?.color, t),
opacity: lerpDouble(a?.opacity, b?.opacity, t),
scale: lerpDouble(a?.scale, b?.scale, t),
backColor: Color.lerp(a?.backColor, b?.backColor, t),
backOpacity: lerpDouble(a?.backOpacity, b?.backOpacity, t),
);
}