isVideo static method

bool isVideo(
  1. String? path
)

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';
}