canSelect method
Checks if a file can be selected based on allowed types.
Implementation
bool canSelect(String fileName) {
if (_allowedTypes.isEmpty) return true;
for (final ext in _allowedTypes) {
if (fileName.endsWith(ext)) return true;
}
return false;
}