Suppose there is a login system. So after login, I need to go to the home screen. After logout, its came to the login screen. So in that case, after logout needs to clear all provider data, listener, state that's related to the home screen, and others.
Also need a clear concept of how to call onDispose() method of a StateNotifierProvider. How to access this from outside of a provider, in case of logout.