Particle constructor

Particle({
  1. double x = 0.0,
  2. double y = 0.0,
  3. double scale = 1.0,
  4. double rotation = 0.0,
  5. int frame = 0,
  6. Color color = Colors.black,
  7. double vx = 0.0,
  8. double vy = 0.0,
  9. double lifespan = 0.0,
  10. double age = 0.0,
})

Constructs a Particle instance.

Implementation

Particle({
  this.x = 0.0,
  this.y = 0.0,
  this.scale = 1.0,
  this.rotation = 0.0,
  this.frame = 0,
  this.color = Colors.black,
  this.vx = 0.0,
  this.vy = 0.0,
  this.lifespan = 0.0,
  this.age = 0.0,
});