How do you override initState in Flutter?

We generally override this method if we need to do some sort of initialisation work like registering a listener because, unlike build() , this method is called once. And to unregister your listener (or doing some post work), you override dispose() method.

Sizin İçin Seçtik  How does machine learning work in mobile apps?

Leave a Reply

Your email address will not be published. Required fields are marked *