So currently i am using flutter providers package for managing state in my app.
Things i am able to do currently:
- Maintaining a bool variable and using it to maintain states globally.
- Having a string in which there is some text and it changes as user types in something and displayed on home page.
when i click on a button is there a way to erase all my maintained states to earlier one, i.e. to remove all states? I am managing lots of states for my app and it is cumbersome to manually change them to earlier one on clicking button.