autoDisposeStreamSubscription method

void autoDisposeStreamSubscription(
  1. StreamSubscription subscription
)

Track a stream subscription to be automatically cancelled on dispose.

Implementation

void autoDisposeStreamSubscription(StreamSubscription subscription) {
  _subscriptions.add(subscription);
}