reconnect method Null safety

bool reconnect()

Reconnects if previously connected and disconnect due to any reasons. It will return false if previous connection was not made.

Implementation

bool reconnect() {
  if (currentUser == null && _int.state.sessionKey == null) {
    return false;
  }

  _int.reconnect(reset: true);
  return true;
}