isConnected property

bool isConnected

Implementation

bool get isConnected {
  return !connection.isClosed;
}