shouldBypassCache static method
True when this key's family must skip the hash on the default path.
Implementation
static bool shouldBypassCache(CacheKey key) {
if (key.hasCustomSensitivity) return false;
switch (key.calcType) {
case CalcType.percent:
case CalcType.scaled:
case CalcType.density:
case CalcType.diagonal:
case CalcType.interpolated:
case CalcType.perimeter:
return !_keyHasAr(key) || _isDefaultSwPath(key);
case CalcType.power:
case CalcType.logarithmic:
return _isDefaultSwPath(key);
case CalcType.auto:
case CalcType.fill:
case CalcType.fit:
case CalcType.fluid:
case CalcType.resize:
case CalcType.unities:
case CalcType.aspectRatio:
return false;
}
}