small change to avoid null reference

This commit is contained in:
avashilling 2025-07-02 15:44:21 -04:00
parent aeaa4321d2
commit 6166511e10

View file

@ -17,7 +17,7 @@ void rainConfetti(BuildContext context) {
_blastController = ConfettiController(duration: const Duration(seconds: 1));
_rainController = ConfettiController(duration: const Duration(seconds: 8));
Future.delayed(const Duration(seconds: 4), () {
if (_rainController!.state == ConfettiControllerState.playing) {
if (_rainController?.state == ConfettiControllerState.playing) {
numParticles = 1;
}
});