State<T extends StatefulWidget> class abstract

The logic and internal state for a StatefulWidget, analogous to Flutter's State.

Override initState, build, and dispose to manage the widget's lifecycle.

Implementers

Constructors

State()

Properties

context BuildContext
The BuildContext for this state object.
no setter
hashCode int
The hash code for this object.
no setterinherited
mounted bool
Whether this state object is currently in the tree.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widget → T
The current widget configuration.
no setter

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this state.
didUpdateWidget(T oldWidget) → void
Called when the widget configuration changes.
dispose() → void
Called when this state object is removed from the tree permanently.
initState() → void
Called when this state object is first inserted into the tree.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setState(void fn()) → void
Notifies the framework that the internal state has changed, triggering a rebuild.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited