isAudio property

bool get isAudio

Checks if the string represents an audio file path (MP3, WAV, AAC, or M4A).

Implementation

bool get isAudio =>
    _endsWith('.mp3') ||
    _endsWith('.wav') ||
    _endsWith('.aac') ||
    _endsWith('.m4a');