Flutter & Dart · Function
initState
initState runs once when Flutter inserts a State object into the widget tree. Override it for setup based on the widget or its location, and call super.initState() first.
Last updated
Syntax
void initState()In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
State.didChangeDependenciesState.didUpdateWidgetState.disposeBuildContext.dependOnInheritedWidgetOfExactType