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.
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.