isDocFile static method

bool isDocFile(
  1. String filename
)

Checks if the given filename corresponds to a document file.

Implementation

static bool isDocFile(String filename) {
  return _hasExtension(filename, ['doc', 'docx']);
}