disposeWith method

void disposeWith(
  1. DisposeObserver observer
)

Register for dispose with given observer.

Implementation

void disposeWith(DisposeObserver observer) => observer.registerDispose(this);