isDOCX property
bool
get
isDOCX
Checks if the file path or URL represents a Microsoft Word document.
Returns true for both DOC and DOCX formats (application/msword and
application/vnd.openxmlformats-officedocument.wordprocessingml.document).
Implementation
bool get isDOCX {
final mt = mimeType();
return mt ==
'application/vnd.openxmlformats-officedocument.wordprocessingml.document' ||
mt == 'application/msword';
}