isAudio property

bool get isAudio

Checks if a file path or URL represents an audio file.

Implementation

bool get isAudio {
  final mt = mimeType();
  return mt?.startsWith('audio/') ?? false;
}