ParticlePainter constructor

ParticlePainter(
  1. Listenable repaint,
  2. {@required List<Particle> particles,
  3. dynamic paintEmitterTarget: true,
  4. dynamic emitterTargetColor: Colors.black}
)

Implementation

ParticlePainter(Listenable repaint,
    {@required this.particles,
    paintEmitterTarget = true,
    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);