dispose method

Future<void>? dispose()

Cancels all subscriptions added to this composite. Disposes this.

This composite can't be reused after calling this method.

Implementation

Future<void>? dispose() {
  final clearDone = clear();
  _isDisposed = true;
  return clearDone;
}