cancelSubscriptions method

void cancelSubscriptions()

Implementation

void cancelSubscriptions() {
  for (final subscription in subscriptions) {
    subscription.cancel();
  }
  subscriptions.clear();
}