ConnectionChannel connection

Source

ConnectionChannel get connection => _conn;
void connection=(ConnectionChannel conn)

Source

set connection(ConnectionChannel conn) {
  if (_connListener != null) {
    _connListener.cancel();
    _connListener = null;
    _onDisconnected(_conn);
  }
  _conn = conn;
  _connListener = _conn.onReceive.listen(onData);
  _conn.onDisconnected.then(_onDisconnected);
  // resend all requests after a connection
  if (_conn.connected) {
    onReconnected();
  } else {
    _conn.onConnected.then((conn) => onReconnected());
  }
}