isImage property

bool get isImage

Check if this is an image type

Implementation

bool get isImage => media?.type.toUpperCase() == 'IMAGE';