BaseFx constructor

BaseFx({
  1. required Size size,
  2. int numParticles = 5000,
  3. 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);
}