dispose method
void
dispose()
Closes controllers and drops all state. The scope must not be reused.
Implementation
void dispose() {
if (_disposed) return;
_disposed = true;
_cache.clear();
for (final ctrl in _invalidationControllers.values) {
try {
ctrl.close();
} catch (_) {}
}
_invalidationControllers.clear();
_inFlightRequests.clear();
}