Skip to content
masterclass Buddy

Flutter & Dart · Class

State

State holds mutable information for a StatefulWidget. Use setState when a change may affect the UI, so Flutter can rebuild the subtree.

Last updated

Syntax

abstract class State<T extends StatefulWidget>

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • StatefulWidget
  • StatelessWidget
  • InheritedWidget
  • Widget
  • BuildContext
  • State.build
  • State.widget

Source: State class - widgets library - Dart API description. Checked 2026-11-03.