what does Inflating StatefullWidget mean in Flutter?

Viewed 177

State objects are created by the framework by calling the StatefulWidget.createState method when inflating a StatefulWidget to insert it into the tree. Here What does inflating StatefulWidget mean?

1 Answers

Here, "inflating" means "adding". createState() helps us in adding(inflating) state(information) to our StatefulWidget.

When we create a widget(say Container widget), we add other properties to it(like height, width and background-color).

We can say that we're "inflating" our Container widget with height, width and background-color.

Related