void cancelSubscriptions()

Cancels all subscriptions to this stream.

Source

void cancelSubscriptions() {

  var subscriptions = _subscriptions;

  for(int i = 0; i < subscriptions.length; i++) {
    _cancelSubscription(subscriptions[i]);
  }
}