FLUTTER INTERVIEW QUESTIONS

What is a State object that you need to create in every StatefulWidget?

As we already know, Widgets are immutable(their fields must be final), and in order to be able to change widget’s appearance over time, we need to introduce the State class.

Everything starts with overriding createState() method in StatefulWidget: