autoDisposeStreamSubscription method

void autoDisposeStreamSubscription(
  1. StreamSubscription subscription
)
inherited

Track a stream subscription to be automatically cancelled on dispose.

Implementation

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