isImage property

bool isImage

Checks if string is an image file name.

Implementation

bool get isImage => GetFile.imageTypes.any(lowercase.endsWith);