lerp method
Linearly interpolate with another Spec object.
Implementation
@override
IconSpec lerp(IconSpec? other, double t) {
if (other == null) return this;
return IconSpec(
color: Color.lerp(color, other.color, t),
size: lerpDouble(size, other.size, t),
weight: lerpDouble(weight, other.weight, t),
grade: lerpDouble(grade, other.grade, t),
opticalSize: lerpDouble(opticalSize, other.opticalSize, t),
shadows: Shadow.lerpList(shadows, other.shadows, t),
textDirection: lerpSnap(textDirection, other.textDirection, t),
applyTextScaling: lerpSnap(applyTextScaling, other.applyTextScaling, t),
fill: lerpDouble(fill, other.fill, t),
animated: other.animated ?? animated,
);
}