Referrer enum

Referrer policy for links and resources.

Inheritance
Available extensions

Values

noReferrer → const Referrer

Never send referrer.

const Referrer('no-referrer')
noReferrerWhenDowngrade → const Referrer

Send full URL for same-origin, no referrer for cross-origin when downgrading.

const Referrer('no-referrer-when-downgrade')
origin → const Referrer

Send only origin (no path).

const Referrer('origin')
originWhenCrossOrigin → const Referrer

Send full URL for same-origin, origin for cross-origin.

const Referrer('origin-when-cross-origin')
sameOrigin → const Referrer

Send referrer only for same-origin requests.

const Referrer('same-origin')
strictOrigin → const Referrer

Send origin for same-origin, no referrer when downgrading.

const Referrer('strict-origin')
strictOriginWhenCrossOrigin → const Referrer

Send full URL for same-origin, origin for cross-origin when not downgrading.

const Referrer('strict-origin-when-cross-origin')
unsafeUrl → const Referrer

Always send full URL (unsafe).

const Referrer('unsafe-url')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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<Referrer>
A constant List of the values in this enum, in order of their declaration.