cancelStreamSubscriptions method

void cancelStreamSubscriptions()
inherited

Cancel all stream subscriptions added.

It is fine to call this method and then add additional subscriptions.

Implementation

void cancelStreamSubscriptions() {
  for (StreamSubscription subscription in _subscriptions) {
    subscription.cancel();
  }
  _subscriptions.clear();
}