htmlTag property

String? htmlTag

Returns the HTML tag name for this MIME-Type.

Implementation

String? get htmlTag {
  if (isImage) {
    return 'img';
  } else if (isVideo) {
    return 'video';
  } else if (isAudio) {
    return 'audio';
  } else {
    return null;
  }
}