lerp method
lerp between two painting effects
Implementation
@override
PaintingEffect lerp(PaintingEffect? other, double t) {
if (other is SoldColorEffect) {
return SoldColorEffect(
color: Color.lerp(color, other.color, t)!,
);
}
return this;
}