disposedBy method

void disposedBy(
  1. DisposeScope disposeScope
)

Adds this stream subscription to disposeScope.

It will be canceled when disposeScope is disposed.

Implementation

void disposedBy(DisposeScope disposeScope) {
  disposeScope.addDispose(cancel);
}