ParticleCurve.linear constructor

ParticleCurve.linear({
  1. double from = 0.0,
  2. double to = 1.0,
})

A straight ramp from from at t = 0 to to at t = 1.

Implementation

ParticleCurve.linear({double from = 0.0, double to = 1.0})
  : this(<ParticleKeyframe>[
      ParticleKeyframe(0, from),
      ParticleKeyframe(1, to),
    ], resolution: 2);