How does initState work in Flutter?

InitState() is used to subscribe to the object . Overriding of initState() method performs initialization which depends on the location at which this object was inserted into the tree (like context) or on the widget used to configure this object (or widget).

Sizin İçin Seçtik  What is consumer in provider?

Leave a Reply

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