isConnected method

bool isConnected()

Implementation

bool isConnected() {
  return status != null && status!.toLowerCase() == 'connected';
}