isAudioFile property

bool get isAudioFile

Checks if this file is an audio file

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

Example:

final file = File('/path/to/song.mp3');
print(file.isAudio); // true

Implementation

bool get isAudioFile => QFileInfoUtils.isAudio(path);