ParticleCurve constructor

ParticleCurve(
  1. double from,
  2. double to, {
  3. Curve curve = Curves.linear,
})

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));