Checks if the given filename corresponds to a document file.
static bool isDocFile(String filename) { return _hasExtension(filename, ['doc', 'docx']); }