isVideo property

bool get isVideo

Checks if the string represents a video file path (MP4, AVI, MOV, or MKV).

Implementation

bool get isVideo =>
    _endsWith('.mp4') ||
    _endsWith('.avi') ||
    _endsWith('.mov') ||
    _endsWith('.mkv');