isVideo property

bool get isVideo

Returns true if the byte content is identified as a video file.

Example MIME types: video/mp4, video/webm.

Implementation

bool get isVideo => mime?.startsWith("video") ?? false;