isVideoFile static method

bool isVideoFile(
  1. String filename
)

Checks if the given filename corresponds to a video file.

Supports common video formats: mp4, mov, avi, mkv, flv, wmv, webm.

Implementation

static bool isVideoFile(String filename) {
  return _hasExtension(
    filename,
    ['mp4', 'mov', 'avi', 'mkv', 'flv', 'wmv', 'webm'],
  );
}