setCache method
Implementation
void setCache(ImageReference img, Uint8List bytes) {
if (!hasCache(img)) {
img.bytes = bytes;
cache.add(img);
} else {
cache.firstWhere((e) => e == img).bytes = bytes;
}
}
void setCache(ImageReference img, Uint8List bytes) {
if (!hasCache(img)) {
img.bytes = bytes;
cache.add(img);
} else {
cache.firstWhere((e) => e == img).bytes = bytes;
}
}