TrustedTypePolicy class

The interface of the Trusted Types API defines a group of functions which create TrustedType objects. A object is created by TrustedTypePolicyFactory.createPolicy() to define a policy for enforcing security rules on input. Therefore, has no constructor.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

TrustedTypePolicy()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String

Available on TrustedTypePolicy, provided by the PropsTrustedTypePolicy extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createHTML(String input, [dynamic arguments1, dynamic arguments2, dynamic arguments3]) TrustedHTML

Available on TrustedTypePolicy, provided by the PropsTrustedTypePolicy extension

createScript(String input, [dynamic arguments1, dynamic arguments2, dynamic arguments3]) TrustedScript

Available on TrustedTypePolicy, provided by the PropsTrustedTypePolicy extension

createScriptURL(String input, [dynamic arguments1, dynamic arguments2, dynamic arguments3]) TrustedScriptURL

Available on TrustedTypePolicy, provided by the PropsTrustedTypePolicy extension

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