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 more