connectionState property Null safety

ConnectionState connectionState

Implementation

ConnectionState get connectionState {
  if (_connected == true) {
    return ConnectionState.open;
  } else {
    return ConnectionState.closed;
  }
}