addFailed method
The addFailed method is called to add a failed key to the requested keys list.
The cacheEntry
is the cache entry.
Implementation
void addFailed(CacheEntry cacheEntry) {
if (failedKeys.indexWhere((e) => e.cacheKey == cacheEntry.cacheKey) == -1) {
failedKeys.add(cacheEntry);
}
}