isConnected method Null safety

bool isConnected()

Implementation

bool isConnected() {
  return _connected;
}