Checks if string is an excel file.
static bool isExcel(String filePath) { final ext = filePath.toLowerCase(); return ext.endsWith(".xls") || ext.endsWith(".xlsx"); }