disconnect method

void disconnect(
  1. K key
)

Disconnect a connected stream from a key in the map.

Implementation

void disconnect(K key) {
  final streamSubscription = _streamsSubscriptions[key];

  if (streamSubscription != null) {
    streamSubscription.cancel();
    _streamsSubscriptions.remove(key);
  }
}