ConfettiWidget constructor

const ConfettiWidget({
  1. Key? key,
  2. Widget? child,
  3. int particleCount = 60,
  4. List<Color> colors = const [Colors.red, Colors.blue, Colors.green, Colors.amber, Colors.purple, Colors.orange, Colors.pink],
  5. Duration duration = const Duration(seconds: 3),
  6. bool autoPlay = false,
})

Implementation

const ConfettiWidget({
  super.key,
  this.child,
  this.particleCount = 60,
  this.colors = const [
    Colors.red,
    Colors.blue,
    Colors.green,
    Colors.amber,
    Colors.purple,
    Colors.orange,
    Colors.pink,
  ],
  this.duration = const Duration(seconds: 3),
  this.autoPlay = false,
});