FireworksDisplay constructor

const FireworksDisplay({
  1. required FireworksController controller,
  2. Key? key,
})

A StatefulWidget that displays a fireworks animation. Just put it at as the top layer of your Stack and then call the fireworksController.fireSingleRocket() or fireworksController.fireMultipleRockets() method to start the fireworks.

Implementation

const FireworksDisplay({
  required this.controller,
  super.key,
});