lerp method
Linearly interpolate with another Spec object.
Implementation
@override
ImageSpec lerp(ImageSpec? other, double t) {
if (other == null) return this;
return ImageSpec(
width: lerpDouble(width, other.width, t),
height: lerpDouble(height, other.height, t),
color: Color.lerp(color, other.color, t),
repeat: lerpSnap(repeat, other.repeat, t),
fit: lerpSnap(fit, other.fit, t),
alignment: AlignmentGeometry.lerp(alignment, other.alignment, t),
centerSlice: lerpSnap(centerSlice, other.centerSlice, t),
filterQuality: lerpSnap(filterQuality, other.filterQuality, t),
colorBlendMode: lerpSnap(colorBlendMode, other.colorBlendMode, t),
animated: other.animated ?? animated,
);
}