categoryOf static method
Implementation
static UDownloadCategory categoryOf(String name) {
final String extension = extensionOf(name);
for (final MapEntry<UDownloadCategory, Set<String>> entry in _categories.entries) {
if (entry.value.contains(extension)) return entry.key;
}
return UDownloadCategory.other;
}