You can call YourStateClass. initState() to revert to its original initialized state . Also make sure that when you construct your state, you will want to initialize all of your variables in the void initState() function.
Read moreHow do I restart my screen on flutter?
Restart app in Flutter
Read moreHow do you restart the app Flutter?
“how to restart flutter app programmatically” Code Answer
Read moreWhat is refresh indicator in flutter?
RefreshIndicator is a widget in Flutter that supports Material’s swipe-to-refresh . It works by showing a circular progress indicator when the child’s Scrollable is overscrolled. If the user ends the scroll and the indicator has been dragged far enough, it will call onRefresh . You can define your own callback function.
Read moreWhat is refresh indicator in flutter?
RefreshIndicator is a widget in Flutter that supports Material’s swipe-to-refresh . It works by showing a circular progress indicator when the child’s Scrollable is overscrolled. If the user ends the scroll and the indicator has been dragged far enough, it will call onRefresh . You can define your own callback function.
Read more