I'm using multiprovider in my application. Provider works perfectly, it stores the data and it provides perfect events when anything gets changed.
Now, I've this scenario in my app ->
User 1 loggedIn. Now when I'm adding a second account in the same login(Like Gmail - Multi-Account) providers are returning me with older values.
I tried to search for resetting values of providers but couldn't able to find anything related to it.
Tried things but didn't work:
- Created a new object of providers to reset.
Provider.of<LoginProvider>(context).dispose();