RequestDestination enum

The destination read-only property of the Request interface returns a string describing the type of content being requested.

MDN reference

Inheritance

Constructors

RequestDestination(String value)
const

Values

default_ → const RequestDestination

The default value of destination is used for destinations that do not have their own value.

const RequestDestination('')
audio → const RequestDestination

The target is audio data.

const RequestDestination('audio')
audioWorklet → const RequestDestination

The target is data being fetched for use by an audio worklet.

const RequestDestination('audioworklet')
document → const RequestDestination

The target is a document (HTML or XML).

const RequestDestination('document')
embed → const RequestDestination

The target is embedded content.

const RequestDestination('embed')
font → const RequestDestination

The target is a font.

const RequestDestination('font')
image → const RequestDestination

The target is an image.

const RequestDestination('image')
manifest → const RequestDestination

The target is a manifest.

const RequestDestination('manifest')
object → const RequestDestination

The target is an object.

const RequestDestination('object')
paintWorklet → const RequestDestination

The target is a paint worklet.

const RequestDestination('paintworklet')
report → const RequestDestination

The target is a report.

const RequestDestination('report')
script → const RequestDestination

The target is a script.

const RequestDestination('script')
serviceWorker → const RequestDestination

The target is a service worker.

const RequestDestination('serviceworker')
sharedWorker → const RequestDestination

The target is a shared worker.

const RequestDestination('sharedworker')
style → const RequestDestination

The target is a style.

const RequestDestination('style')
track → const RequestDestination

The target is an HTML .

const RequestDestination('track')
video → const RequestDestination

The target is video data.

const RequestDestination('video')
worker → const RequestDestination

The target is a worker.

const RequestDestination('worker')
xslt → const RequestDestination

The target is an XSLT transform.

const RequestDestination('xslt')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value 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

Constants

values → const List<RequestDestination>
A constant List of the values in this enum, in order of their declaration.