cancelSubscriptions method

void cancelSubscriptions()

Cancels all streams that were previously added with listen().

Implementation

void cancelSubscriptions() {
  _subscriptions
      .forEach((StreamSubscription<T> subscription) => subscription.cancel());
}