MimeType enum

Common MIME types (mirroring Gin's constants). These are used to determine the type of data in the request body.

Inheritance
Available extensions

Values

json → const MimeType
const MimeType('application/json')
html → const MimeType
const MimeType('text/html')
xml → const MimeType
const MimeType('application/xml')
xml2 → const MimeType
const MimeType('text/xml')
plain → const MimeType
const MimeType('text/plain')
postForm → const MimeType
const MimeType('application/x-www-form-urlencoded')
multipartPostForm → const MimeType
const MimeType('multipart/form-data')
protobuf → const MimeType
const MimeType('application/x-protobuf')
msgpack → const MimeType
const MimeType('application/x-msgpack')
msgpack2 → const MimeType
const MimeType('application/msgpack')
yaml → const MimeType
const MimeType('application/x-yaml')
yaml2 → const MimeType
const MimeType('application/yaml')
toml → const MimeType
const MimeType('application/toml')
unknown → const MimeType
const MimeType('unknown')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The string representation of the MIME type.
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.