isExcel property

bool get isExcel

Determines whether a given string represents an Excel file.

Implementation

bool get isExcel {
  final ext = toLowerCase();

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