removeTemporalFiles static method

void removeTemporalFiles(
  1. List<String> paths
)

Removes a list of temporary files (blob URLs) on web.

Implementation

static void removeTemporalFiles(List<String> paths) {
  for (final path in paths) {
    if (path.startsWith('blob:')) {
      web.URL.revokeObjectURL(path);
    }
  }
}