resetForTesting static method

  1. @visibleForTesting
void resetForTesting()

Restores the default store. Tests only: keeps one custom-budget test from leaking its cap into the next.

Implementation

@visibleForTesting
static void resetForTesting() {
  _instance = DigiaImageCacheManager._(maxNrOfCacheObjects);
  CachedNetworkImageProvider.defaultCacheManager = _instance;
}