isVideoFile static method
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'],
);
}