dispose method

void dispose()

Detaches from the cache. The stored window survives; in-flight fetch results are discarded; the watch stream closes.

Implementation

void dispose() {
  if (_disposed) return;
  _disposed = true;
  _generation++;
  _cache.removeObserver(_observer);
  _controller?.close();
  _controller = null;
}