0

Is there any way to reset all view model data (ChangeNotifier)? Tried to dispose the view model but didn't work. I want to clear all data when user logout.

Kwok Yat Man
  • 1
  • 1
  • 1

1 Answers1

0

Does this help you? Basically adding an ObjectKey to your Provider which you change when the user logs out or whatever.