2

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?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
  • You can check flutter docs from here https://api.flutter.dev/flutter/widgets/StatefulWidget-class.html – Muhammed Kılıç Jan 20 '21 at 13:41
  • I took this Statement"State objects are created by the framework by calling the StatefulWidget.createState method when inflating a StatefulWidget to insert it into the tree." from flutter.dev .But here what does exactly mean by inflating StatefullWidget mean? – anirudh bisht anirudh bisht Jan 20 '21 at 13:51

1 Answers1

2

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.

Manish Paul
  • 424
  • 1
  • 8
  • 17