isAudio property

bool get isAudio

Checks if string is an audio file.

Implementation

bool get isAudio {
  final ext = _string.toLowerCase();

  return ext.endsWith(".mp3") ||
      ext.endsWith(".wav") ||
      ext.endsWith(".wma") ||
      ext.endsWith(".amr") ||
      ext.endsWith(".ogg");
}