isSpreadSheetFile static method
Checks if the given filename corresponds to a spreadsheet file.
Parameters:
filename
: The name of the file to check.
Returns:
- A boolean indicating whether the file is a spreadsheet file.
Implementation
static bool isSpreadSheetFile(String filename) {
return filename.endsWith(".xls") || filename.endsWith(".xlsx");
}