dispose method

void dispose ()

Cancels all subscriptions added to this composite. Disposes this.

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

Implementation

void dispose() {
  clear();
  _isDisposed = true;
}