ConfettiWidget constructor

const ConfettiWidget({
  1. Key? key,
  2. Preset preset = Preset.nova,
  3. ConfettiController? controller,
  4. bool autoPlay = true,
  5. VoidCallback? onComplete,
  6. bool enableHaptics = true,
  7. bool enableSound = false,
  8. String? soundAssetPath,
  9. CelebrationFeedback? feedback,
  10. List<String>? emojiPool,
  11. ConfettiCustomization? customization,
  12. ConfettiShowcase? showcase,
})

Creates a ConfettiWidget.

Implementation

const ConfettiWidget({
  super.key,
  this.preset = Preset.nova,
  this.controller,
  this.autoPlay = true,
  this.onComplete,
  this.enableHaptics = true,
  this.enableSound = false,
  this.soundAssetPath,
  this.feedback,
  this.emojiPool,
  this.customization,
  this.showcase,
});