isVideo property
Indicates whether this FileAttachment represents a video.
Implementation
bool get isVideo {
final String file = filename.toLowerCase();
return file.endsWith('.mp4') ||
file.endsWith('.mov') ||
file.endsWith('.webm') ||
file.endsWith('.mkv') ||
file.endsWith('.flv') ||
file.endsWith('.3gp');
}