MediaType class

Constructors

MediaType(String type, String subtype, {Map<String, String>? parameters})
const
MediaType.parse(String mediaType)
Parses a media type.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
mimeType String
The media type's MIME type.
no setter
parameters Map<String, String>
The parameters to the media type.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtype String
final
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

Static Properties

all MediaType
getter/setter pair
applicationAtomXml MediaType
getter/setter pair
applicationCbor MediaType
getter/setter pair
applicationFormUrlencoded MediaType
getter/setter pair
applicationGraphql MediaType
getter/setter pair
applicationGraphqlResponse MediaType
getter/setter pair
applicationJson MediaType
getter/setter pair
applicationNdjson MediaType
getter/setter pair
applicationOctetStream MediaType
getter/setter pair
applicationPdf MediaType
getter/setter pair
applicationProblemJson MediaType
getter/setter pair
applicationProblemXml MediaType
getter/setter pair
applicationProtobuf MediaType
getter/setter pair
applicationRssXml MediaType
getter/setter pair
applicationStreamJson MediaType
getter/setter pair
applicationXhtmlXml MediaType
getter/setter pair
applicationXml MediaType
getter/setter pair
imageGif MediaType
getter/setter pair
imageJpeg MediaType
getter/setter pair
imagePng MediaType
getter/setter pair
multipartFormData MediaType
getter/setter pair
multipartMixed MediaType
getter/setter pair
multipartRelated MediaType
getter/setter pair
textEventStream MediaType
getter/setter pair
textHtml MediaType
getter/setter pair
textMarkdown MediaType
getter/setter pair
textPlain MediaType
getter/setter pair
textXml MediaType
getter/setter pair