ContentType class Null safety

Content-Type in Header

Define most common type.

Constructors

ContentType()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

contentTypeHeaderKey → const String
content-type
HttpHeaders.contentTypeHeader
css → const String
text/css
'text/css'
csv → const String
text/csv
'text/csv'
formData → const String
multipart/form-data
'multipart/form-data'
gif → const String
image/gif
'image/gif'
html → const String
text/html
'text/html'
javascript → const String
application/javascript
'application/javascript'
jpeg → const String
image/jpeg
'image/jpeg'
json → const String
application/json
'application/json'
mp4 → const String
video/mp4
'video/mp4'
mpeg → const String
video/mpeg
'video/mpeg'
pdf → const String
application/pdf
'application/pdf'
png → const String
image/png
'image/png'
quicktime → const String
video/quicktime
'video/quicktime'
text → const String
text/plain
'text/plain'
tiff → const String
image/tiff
'image/tiff'
x_www_form_urlencoded → const String
application/x-www-form-urlencoded
'application/x-www-form-urlencoded'
xml → const String
application/xml
'application/xml'
zip → const String
application/zip
'application/zip'