cleanUp method Null safety

void cleanUp()

Implementation

void cleanUp() {
  userId = null;
  currentUser = null;
  sessionKey = null;
  token = null;

  connected = false;
  connecting = false;
  reconnecting = false;
  lastConnectedAt = null;

  apiHost = null;
  wsHost = null;

  pushToken = null;
  pushTokenType = null;
  appInfo = null;
}