clear method

void clear({
  1. bool? disposeNotifiers,
})

Removes all cached ResultNotifiers, and disposes them if parameter disposeNotifiers or willAutoDispose is true.

Implementation

void clear({bool? disposeNotifiers}) {
  _cache.forEach((key, cacheEntry) => _disposeNotifier(key, cacheEntry, disposeNotifiers ?? willAutoDispose));
  _cache.clear();
  _updateAutoDisposeTimer();
}