isVideo property
Indicates whether this file represents a video or not.
Implementation
bool get isVideo {
// Best effort if [mime] is `null`.
if (mime == null) {
return [
'mp4',
'mov',
'webm',
'mkv',
'flv',
'3gp',
].contains(extension.toLowerCase());
}
return mime?.type == 'video';
}