isImage property

bool get isImage

Checks if the string represents an image file path (SVG, PNG, JPG, JPEG, GIF, WEBP, BMP, or HEIC).

Implementation

bool get isImage =>
    isJpg ||
    isPng ||
    isSvg ||
    _endsWith('.gif') ||
    _endsWith('.webp') ||
    _endsWith('.bmp') ||
    _endsWith('.heic');