isImageFile property

bool get isImageFile

Checks if this file path represents an image

Returns true if the file is likely an image based on extension

Example:

print('/path/to/photo.jpg'.isImageFile); // true

Implementation

bool get isImageFile => QFileInfoUtils.isImage(this);