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

isSupported() bool
Checks if the value is supported by the defaultTargetPlatform.
name() String
Gets the name of the value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNativeValue() String?
Gets String native value if supported by the current platform, otherwise null.
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

asNameMap() Map<String, CrossOrigin>
Creates a map from the names of CrossOrigin values to the values.
byName(String? name) CrossOrigin?
Gets a possible CrossOrigin instance value with name name.
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'.