MimeType class

identifies the type of content of a message

Constructors

MimeType(String primaryType, String subType)
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isBinary bool
read-only
isFormData bool
read-only
isJson bool
read-only
isUrlEncodedForm bool
read-only
mimeType String
Gets the mime-type, without any parameters.
final
primaryType String
Gets the primary type.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
subType String
Gets the sub type.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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

Static Methods

parse(String contentTypeHeader) MimeType

Constants

binary → const MimeType
const MimeType('application', 'octet-stream')