shouldOptimize method

bool shouldOptimize(
  1. String path,
  2. int size,
  3. DateTime modified
)

Implementation

bool shouldOptimize(String path, int size, DateTime modified) {
  final entry = _cache[path];
  if (entry == null) return true;

  return entry.size != size || entry.modified != modified;
}