CrossOrigin class

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.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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'.
USE_CREDENTIALS → const CrossOrigin
CORS requests for this element will have the credentials flag set to 'include'.