MediaType class

Constructors

MediaType(String primaryType, String subType, [String charset, Map<String, String> parameters])

Properties

hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override

Static Properties

binary MediaType
final
html MediaType
final
json MediaType
final
text MediaType
final

Static Methods

parse(String value) MediaType