isOfficeFile static method

bool isOfficeFile(
  1. String filename
)

Checks if the given filename corresponds to an office file.

Implementation

static bool isOfficeFile(String filename) {
  return _hasExtension(
      filename, ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx']);
}