MimeType enum

MimeType is an enum for adding filetype for HTML Blob

Inheritance

Constructors

MimeType({required String name, required String type})
const

Values

avi → const MimeType

avi for .avi extension

const MimeType(name: 'AVI', type: 'video/x-msvideo')
aac → const MimeType

aac for .aac extension

const MimeType(name: 'AAC', type: 'audio/aac')
apng → const MimeType

apng for .apng extension

const MimeType(name: 'APNG', type: 'image/apng')
asice → const MimeType

asice for .asice

const MimeType(name: 'ASICE', type: 'application/vnd.etsi.asic-e+zip')
asics → const MimeType

asics for .asice

const MimeType(name: 'ASICS', type: 'application/vnd.etsi.asic-s+zip')
bDoc → const MimeType

bDoc for .asice

const MimeType(name: 'BDoc', type: 'application/vnd.etsi.asic-e+zip')
bmp → const MimeType

bmp for .bmp extension

const MimeType(name: 'Bitmap', type: 'image/bmp')
csv → const MimeType

csv for .csv extension

const MimeType(name: 'CSV', type: 'text/csv')
epub → const MimeType

epub for .epub extention

const MimeType(name: 'Epub', type: 'application/epub+zip')
gif → const MimeType

gif for .gif extension

const MimeType(name: 'GIF', type: 'image/gif')
json → const MimeType

json for .json extension

const MimeType(name: 'JSON', type: 'application/json')
jpeg → const MimeType

jpeg for .jpeg extension

const MimeType(name: 'JPEG', type: 'image/jpeg')
microsoftExcel → const MimeType

microsoftExcel for .xlsx extension

const MimeType(name: 'Microsoft Excel', type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')
microsoftPresentation → const MimeType

microsoftPresentation for .pptx extension

const MimeType(name: 'Microsoft Presentation', type: 'application/vnd.openxmlformats-officedocument.presentationml.presentation')
microsoftWord → const MimeType

microsoftWord for .docx extension

const MimeType(name: 'Microsoft Word', type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document')
mpeg → const MimeType

mpeg for .mpeg extension

const MimeType(name: 'MPEG', type: 'video/mpeg')
mp3 → const MimeType

mp3 for .mp3 extension

const MimeType(name: 'MP3', type: 'audio/mpeg')
other → const MimeType

other for other extension

const MimeType(name: 'Other', type: 'application/octet-stream')
otf → const MimeType

otf for .otf extension

const MimeType(name: 'OTF', type: 'font/otf')
openDocSheets → const MimeType

openDocSheets for .ods extension

const MimeType(name: 'Open Document Sheets', type: 'application/vnd.oasis.opendocument.spreadsheet')
openDocPresentation → const MimeType

openDocPresentation for .odp extension

const MimeType(name: 'Open Document Presentation', type: 'application/vnd.oasis.opendocument.presentation')
openDocText → const MimeType

openDocText for .odt extension

const MimeType(name: 'Open Document Text', type: 'application/vnd.oasis.opendocument.text')
pdf → const MimeType

pdf for .pdf extension

const MimeType(name: 'PDF', type: 'application/pdf')
png → const MimeType

png for .png extension

const MimeType(name: 'PNG', type: 'image/png')
rar → const MimeType

rar for .rar extension

const MimeType(name: 'RAR', type: 'application/x-rar-compressed')
text → const MimeType

text for .txt extension

const MimeType(name: 'Text', type: 'text/plain')
ttf → const MimeType

ttf for .ttf extension

const MimeType(name: 'TTF', type: 'font/ttf')
zip → const MimeType

zip for .zip extension

const MimeType(name: 'ZIP', type: 'application/zip')
custom → const MimeType

Custom mimeType which is not yet added in the enum

const MimeType(name: 'Custom', type: '')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<MimeType>
A constant List of the values in this enum, in order of their declaration.