Flutter & Dart · Function
setState
setState tells Flutter that a State object's internal value changed. Flutter then schedules that State object to build again so its subtree can reflect the change.
Last updated
Syntax
@protected
void setState(VoidCallback fn)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
StateStatefulWidgetElement.markNeedsBuildmounteddispose