thumbnailMimetype property

String thumbnailMimetype

Gets the mimetype of the thumbnail of a file event, or a blank string if not present

Implementation

String get thumbnailMimetype => thumbnailInfoMap['mimetype'] is String
    ? thumbnailInfoMap['mimetype'].toLowerCase()
    : (infoMap['thumbnail_file'] is Map &&
            infoMap['thumbnail_file']['mimetype'] is String
        ? infoMap['thumbnail_file']['mimetype']
        : '');