isExcel property

bool get isExcel

Checks if string is an excel file.

Implementation

bool get isExcel {
  String ext = toLowerCase();

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