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