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 moreYou 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 more