MimeType class

Constructors

MimeType(String type, String subtype, [Map<String, String>? parameters])
MimeType.fromString(String value)
Create MimeType from string of type/subtype;parameter=value
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
mimeType String
The media type's MIME type.
no setterinherited
parameters Map<String, String>
The parameters to the media type.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtype String
The secondary identifier of the MIME type.
finalinherited
type String
The primary identifier of the MIME type.
finalinherited

Methods

change({String? type, String? subtype, String? mimeType, Map<String, String>? parameters, bool clearParameters = false}) → MediaType
Returns a copy of this MediaType with some fields altered.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Converts the media type to a string.
inherited

Operators

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