ParticlePainter constructor

ParticlePainter({
  1. required bool enableHover,
  2. required List<Color> randColorList,
  3. required bool isRandSize,
  4. required double maxParticleSize,
  5. required List<Offset> offsets,
  6. required bool isRandomColor,
  7. required Color particleColor,
  8. required List<double> randSize,
  9. required List<int> hoverIndex,
  10. required Color hoverColor,
  11. required List<List> lineOffsets,
})

Implementation

ParticlePainter({
  required this.enableHover,
  required this.randColorList,
  required this.isRandSize,
  required this.maxParticleSize,
  required this.offsets,
  required this.isRandomColor,
  required this.particleColor,
  required this.randSize,
  required this.hoverIndex,
  required this.hoverColor,
  required this.lineOffsets,
})  : constColorPaint = Paint()..color = particleColor,
      hoverPaint = Paint()..color = hoverColor;