logout static method Null safety
Logs out the currently logged in user session.
Implementation
static Future logout() async {
_currentUser = null;
try {
SharedPreferences prefs = await SharedPreferences.getInstance();
prefs.remove(CurrentUserKey);
} on Error catch (e) {
LCLogger.error(e.toString());
}
}