isImageFile property

bool get isImageFile

Checks if this file is an image

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

Example:

final file = File('/path/to/photo.jpg');
print(file.isImage); // true

Implementation

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