State<T extends StatefulComponent> class abstract

The logic and internal state for a StatefulComponent.

Implementers

Constructors

State()

Properties

component → T
no setter
context BuildContext
no setter
hashCode int
The hash code for this object.
no setterinherited
mounted bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

activate() → void
Called when this State is reinserted into the tree after being removed via deactivate.
build(BuildContext context) Component
Describes the part of the user interface represented by this component.
deactivate() → void
Called when this State is temporarily removed from the tree.
didChangeDependencies() → void
Called when dependencies of this object change.
didUpdateComponent(covariant T oldComponent) → void
Called whenever the component configuration changes.
dispose() → void
Clean up resources. Called when the State object is removed permanently.
initState() → void
Initialize state. Called once when the State object is created.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
setState(VoidCallback fn) → void
Notify the framework that the internal state has changed.
toString() String
A string representation of this object.
inherited

Operators

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