文件是否是Excel
static bool isExcel(String filePath) { final ext = filePath.toLowerCase(); return ext.endsWith(".xls") || ext.endsWith(".xlsx"); }