dimanche 28 juin 2020

how to display random number in flutter

I need to display a random number in flutter using a function, but when i call it i get error.

 void generateRandomNumber() {
                        setState(() {
                          point=pointValue[new Random().nextInt(pointValue.length)];
                        });
                        }



Aucun commentaire:

Enregistrer un commentaire