Which method do we need to override for both widgets in Flutter?

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). In simple terms, while a page in flutter gets created on screen, this method gets called at very first.29 Nis 2020

Sizin İçin Seçtik  What is stateful and stateless in Flutter?

Leave a Reply

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