isVideo static method
Implementation
static bool isVideo(String? path) {
if (path == null || path.isEmpty) return false;
String? mimeType = lookupMimeType(path);
if (mimeType == null || mimeType.isEmpty) return false;
return mimeType.split('/')[0] == 'video';
}