isSupportedFile static method
Checks if the given filename corresponds to a supported file type.
Implementation
static bool isSupportedFile(String filename) {
const supportedExtensions = [
'jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', // Image files
'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', // Office files
'pdf', // PDF files
'zip', // Zip files
'txt' // Text files
];
return _hasExtension(filename, supportedExtensions);
}