When a Flutter builds a StatefulWidget , it creates a State object. This object is where all the mutable state for that widget is held. The concept of state is defined by two things: The data used by the widget might change . The data can’t be read synchronously when the widget is built.