addSubscription<T> method

StreamSubscription<T> addSubscription<T>(
  1. StreamSubscription<T> subscription
)

添加订阅到 dispose bag

Implementation

StreamSubscription<T> addSubscription<T>(StreamSubscription<T> subscription) {
  _checkDisposed();
  _subscriptionBag.add(subscription);
  return subscription;
}