What is lifecycle of a widget in Flutter?

Widgets in Flutter have following lifecycle methods associated with them: initState: This method is called when this object is inserted into the tree . This will be called exactly once per State object. Here we can initialize the variables needed for the widget such as AnimationController.29 May 2021

Sizin İçin Seçtik  How do I create a constructor for stateful widget?

Leave a Reply

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