logout method
logs the user out and therefor resets the UI to show the login-screen again
Implementation
Future logout() async {
await API().logout();
notifyListeners();
}
logs the user out and therefor resets the UI to show the login-screen again
Future logout() async {
await API().logout();
notifyListeners();
}