close method

void close()

Release this bridge's ReceivePort. After closing, send throws and the messages stream emits done.

Implementation

void close() {
  if (_closed) return;
  _closed = true;
  _rx.close();
  _messages.close();
}