logout method

Future logout()

logs the user out and therefor resets the UI to show the login-screen again

Implementation

Future logout() async {
  await API().logout();
  notifyListeners();
}