description property
String
get
description
Get a human-readable description of the file type
Implementation
String get description {
switch (mimeType) {
case 'application/pdf':
return 'PDF Document';
case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document':
return 'Word Document';
case 'application/msword':
return 'Word Document (Legacy)';
case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet':
return 'Excel Spreadsheet';
case 'application/vnd.ms-excel':
return 'Excel Spreadsheet (Legacy)';
case 'application/vnd.openxmlformats-officedocument.presentationml.presentation':
return 'PowerPoint Presentation';
case 'application/vnd.ms-powerpoint':
return 'PowerPoint Presentation (Legacy)';
case 'text/plain':
return 'Text File';
case 'text/csv':
return 'CSV File';
case 'application/json':
return 'JSON File';
case 'audio/mpeg':
return 'MP3 Audio';
case 'audio/wav':
return 'WAV Audio';
case 'video/mp4':
return 'MP4 Video';
case 'application/zip':
return 'ZIP Archive';
default:
return 'File ($mimeType)';
}
}