addLogoutListener method
Add listener
to LogoutListeners.
The listeners will get called when user logout is called.
Clearing Sentry user other cache clearing can be done using the listener
Implementation
void addLogoutListener(LogoutListener onLogout) {
_logoutListeners.add(onLogout);
}