Particle constructor
Particle({
- double x = 0,
- double y = 0,
- double opacity = 0,
- double vx = 0,
- double vy = 0,
- double dist = 0,
- double distFrac = 0,
- double size = 0,
- double life = 0,
- double lifeLeft = 0,
- bool isFilled = false,
- bool? isFlowing = false,
- Color color = Colors.black,
- int distribution = 0,
- 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,
});