I created new page in my app but i want to call function without set state
this is my function:
yaziGetir(Mahalle mahalle) { FirebaseFirestore.instance .collection("Mahalleler") .doc(mahalle.neighborhood) .get() .then((gelenVeri) { setState(() { gelenYaziBasligi = gelenVeri.data()['Eğitim']; gelenYaziIcerigi = gelenVeri.data()['Geri Dönüşüm']; }); }); } ''' https://stackoverflow.com/questions/66072594/how-to-call-a-function-on-start-in-flutter February 06, 2021 at 09:06AM
没有评论:
发表评论