hasCache method
Implementation
bool hasCache(ImageReference img) {
return cache.contains(img) &&
cache.firstWhere((e) => e == img).bytes != null;
}
bool hasCache(ImageReference img) {
return cache.contains(img) &&
cache.firstWhere((e) => e == img).bytes != null;
}