FireworksController constructor

FireworksController({
  1. List<Color>? colors,
  2. Color? rocketColor,
  3. double minExplosionDuration = 1.0,
  4. double maxExplosionDuration = 3.0,
  5. int minParticleCount = 100,
  6. int maxParticleCount = 250,
  7. double fadeOutDuration = 0.3,
})

Implementation

FireworksController({
  List<Color>? colors,
  this.rocketColor,
  this.minExplosionDuration = 1.0,
  this.maxExplosionDuration = 3.0,
  this.minParticleCount = 100,
  this.maxParticleCount = 250,
  this.fadeOutDuration = 0.3,
}) : colors = colors ??
          [
            Colors.pinkAccent,
            Colors.blueAccent,
            Colors.greenAccent,
            Colors.amberAccent,
          ];