dispose method
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;
}