ParticlePainter constructor
ParticlePainter(
- Listenable? repaint, {
- required List<
Particle> particles, - bool paintEmitterTarget = true,
- Color emitterTargetColor = Colors.black,
Implementation
ParticlePainter(
Listenable? repaint, {
required this.particles,
bool paintEmitterTarget = true,
Color emitterTargetColor = Colors.black,
}) : _paintEmitterTarget = paintEmitterTarget,
_emitterPaint = Paint()
..color = emitterTargetColor
..style = PaintingStyle.stroke
..strokeWidth = 2.0,
_particlePaint = Paint()
..color = Colors.green
..style = PaintingStyle.fill,
super(repaint: repaint);