isExcel property

bool get isExcel

Checks if string is an excel file.

Implementation

bool get isExcel {
  final ext = _string.toLowerCase();

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