MimeTypes class abstract

A namespace class to expose mime type specific features

Constructors

MimeTypes()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

ofFile(File file, {Iterable<MimeTypeDetector>? detectors}) String?
Returns mime type of file based on its extension

Constants

avi → const String
binary → const String
mime type for binary
bmp → const String
css → const String
Mime type for CSS
dart → const String
Mime type for Dart
flv → const String
fromFileExtension → const Map<String, String>
Map of file extension to mime type
gif → const String
Mime type for GIF
gp3 → const String
html → const String
Mime type for HTML
javascript → const String
Mime type for Javascript
jpeg → const String
Mime type for JPEG
json → const String
Mime type for JSON
mov → const String
mp3 → const String
mp4 → const String
multipartForm → const String
Mime type for multipart form data
pdf → const String
png → const String
Mime type for PNG
rar → const String
svg → const String
Mime type for SVG
tar → const String
txt → const String
urlEncodedForm → const String
Mime type form-urlencoded
wasm → const String
wav → const String
webm → const String
webp → const String
xhtml → const String
Mime type for XHTML
zip → const String