CrossOrigin class Null safety

Class that represents the crossorigin content attribute on media elements, which is a CORS settings attribute. It could be used with ScriptHtmlTagAttributes and CSSLinkHtmlTagAttributes when fetching a resource <link> or a <script> (or resources fetched by the <script>).

Properties

hashCode int
The hash code for this object.
read-onlyoverride
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.
override
toValue() String

Operators

operator ==(Object value) bool
The equality operator.
override

Static Properties

values Set<CrossOrigin>
final

Static Methods

fromValue(String? value) CrossOrigin?

Constants

ANONYMOUS → const CrossOrigin
CORS requests for this element will have the credentials flag set to 'same-origin'.
const CrossOrigin._internal("anonymous")
USE_CREDENTIALS → const CrossOrigin
CORS requests for this element will have the credentials flag set to 'include'.
const CrossOrigin._internal("use-credentials")