disposedBy method

Future<bool> disposedBy(
  1. DisposeBag bag
)

Adds this StreamSubscription to bag or cancel it if the bag has been disposed.

Implementation

Future<bool> disposedBy(DisposeBag bag) => bag.add(this);