isDocument property

bool get isDocument

Checks if the string represents a document file path (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX).

Implementation

bool get isDocument =>
    isPDF ||
    _endsWith('.doc') ||
    _endsWith('.docx') ||
    _endsWith('.xls') ||
    _endsWith('.xlsx') ||
    _endsWith('.ppt') ||
    _endsWith('.pptx');