isDocument property

bool isDocument

Checks if string is a document file name.

Implementation

bool get isDocument => GetFile.docTypes.any(lowercase.endsWith);