Particle constructor

Particle({
  1. double x = 0,
  2. double y = 0,
  3. double opacity = 0,
  4. double vx = 0,
  5. double vy = 0,
  6. double dist = 0,
  7. double distFrac = 0,
  8. double size = 0,
  9. double life = 0,
  10. double lifeLeft = 0,
  11. bool isFilled = false,
  12. bool? isFlowing = false,
  13. Color color = Colors.black,
  14. int distribution = 0,
  15. ParticleDrawShape shape = ParticleDrawShape.circle,
})

Implementation

Particle({
  this.x = 0,
  this.y = 0,
  this.opacity = 0,
  this.vx = 0,
  this.vy = 0,
  this.dist = 0,
  this.distFrac = 0,
  this.size = 0,
  this.life = 0,
  this.lifeLeft = 0,
  this.isFilled = false,
  this.isFlowing = false,
  this.color = Colors.black,
  this.distribution = 0,
  this.shape = ParticleDrawShape.circle,
});