ParticlePainter constructor
ParticlePainter({
- required bool enableHover,
- required List<
Color> randColorList, - required bool isRandSize,
- required double maxParticleSize,
- required List<
Offset> offsets, - required bool isRandomColor,
- required Color particleColor,
- required List<
double> randSize, - required List<
int> hoverIndex, - required Color hoverColor,
- 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;