isImageScaledInCache method
Returns true
if a scale
is in cache.
Implementation
bool isImageScaledInCache(double scale) {
if (scale <= 0) return false;
if (scale == 1.0) return true;
var scaledImage = _scaleCache[scale];
return scaledImage != null;
}