isExcel property
bool
get
isExcel
Checks if the file path or URL represents any Microsoft Excel spreadsheet. (.xls or .xlsx)
Implementation
bool get isExcel {
final mt = mimeType();
return mt == 'application/vnd.ms-excel' || // Old .xls
mt ==
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; // .xlsx
}