logout method

void logout()

Implementation

void logout() {
  user = null;
}