Because we can’t call setState() directly in the initState method, we can’t call it from a function called by initState either. Unless this function is asynchronous and the setState call is made after the first await .
Read moreHow do you call build method again in Flutter?
With reference to the state object we can say, setState() tells the Flutter framework that something has changed in this State. This change fires the build() method to rerun . Moreover, it reflects the change on the screen. The display can now reflect the change on the screen.22 May 2021
Read more