isVideo static method

bool isVideo(
  1. String fileName, [
  2. List<String>? ext
])

判断文件是否是视频

Implementation

static bool isVideo(String fileName, [List<String>? ext]) =>
    (ext ?? ['mkv', 'mp4', 'avi', 'mov', 'wmv', 'mpg', 'mpeg']).contains(
      getFileSuffix(fileName),
    );