small change to avoid null reference
This commit is contained in:
parent
aeaa4321d2
commit
6166511e10
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue