isSupportOpen static method

bool isSupportOpen(
  1. String fileType
)

Whether type of the file support

Implementation

static bool isSupportOpen(String fileType) {
  final List<String> types = <String>['docx', 'doc', 'xlsx', 'xls', 'pptx', 'ppt', 'pdf', 'txt'];
  return types.contains(fileType.toLowerCase());
}