isAudio static method

bool isAudio(
  1. String string
)

check string is audio

Implementation

static bool isAudio(String string) {
  String _ext = string.toLowerCase();
  return _ext.endsWith(".mp3") ||
      _ext.endsWith(".wav") ||
      _ext.endsWith(".aac") ||
      _ext.endsWith(".wma");
}