isImage property

bool get isImage

The attachment is an image.

Implementation

bool get isImage => type.startsWith('image/');