isExcelFileName property

bool get isExcelFileName

检查字符串是否为Excel文件名。

Implementation

bool get isExcelFileName {
  final String path = toLowerCase();

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