isAudio property

dynamic get isAudio

Implementation

get isAudio {
  var source = url ?? path;
  if (source == null || source.isEmpty) return false;
  source = source.toLowerCase();
  return type == MediaType.audio ||
      source.contains('.mp3') ||
      source.contains('.wav');
}