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
toNativeValue() String
Gets String native value.
toString() String
A string representation of this object.
override
toValue() String
Gets String value.

Operators

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

Static Properties

values Set<CrossOrigin>
Set of all values of CrossOrigin.
final

Static Methods

fromNativeValue(String? value) CrossOrigin?
Gets a possible CrossOrigin instance from a native value.
fromValue(String? value) CrossOrigin?
Gets a possible CrossOrigin instance from String value.

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'.