ParticleCurve constructor
Interpolates from from at spawn to to at death, optionally shaped
by an animation curve (for example Curves.easeOut).
Implementation
ParticleCurve(double from, double to, {Curve curve = Curves.linear})
: this.custom((t) => from + (to - from) * curve.transform(t));