addSubscriptions method

void addSubscriptions(
  1. List<StreamSubscription> subscriptions
)

添加多个订阅到 dispose bag

Implementation

void addSubscriptions(List<StreamSubscription> subscriptions) {
  _checkDisposed();
  for (var subscription in subscriptions) {
    _subscriptionBag.add(subscription);
  }
}