logout method

Future<void> logout()

Implementation

Future<void> logout() async {
  _token = null;
  _profile = null;
  GlobalVars.token = null;
  _prefs.clear();
  notifyListeners();
}