dvAssetWorthEncoding function

bool dvAssetWorthEncoding(
  1. String path
)

Whether the file at path is worth encoding at all.

Implementation

bool dvAssetWorthEncoding(String path) {
  final String name = path.split('/').last.toLowerCase();
  final int dot = name.lastIndexOf('.');
  if (dot < 0) return true;
  return !_compressedAlready.contains(name.substring(dot + 1));
}