hasCache method

bool hasCache(
  1. ImageReference img
)

Implementation

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