BaseFx constructor
BaseFx({
- required Size size,
- int numParticles = 5000,
- ParticleShapeType shape = ParticleShapeType.circle,
Implementation
BaseFx({
required Size size,
this.numParticles = 5000,
this.shape = ParticleShapeType.circle,
}) {
palette = const Palette(colors: [Colors.transparent]);
particles = List<Particle?>.filled(numParticles, null);
setSize(size);
}