isExcel static method

bool isExcel(
  1. String filePath
)

Checks if string is an excel file.

Implementation

static bool isExcel(String filePath) {
  final ext = filePath.toLowerCase();

  return ext.endsWith('.xls') || ext.endsWith('.xlsx');
}