clearAllCaches static method

void clearAllCaches({
  1. bool dispose = false,
})

Removes all cached notifiers of all types

Implementation

static void clearAllCaches({bool dispose = false}) {
  if (dispose) {
    _cache.forEach((key, value) {
      value.dispose();
    });
  }

  _cache.clear();
}