isVideo static method

bool isVideo(
  1. String? s
)

验证是否为视频文件名(.mp4/.avi/.wmv/.rmvb/.mpg/.mpeg/.3gp)。

Implementation

static bool isVideo(String? s) =>
    s != null && s.isNotEmpty && _videoRegExp.hasMatch(s);