TrustedTypePolicyFactory class

The interface of the Trusted Types API creates policies and allows the verification of Trusted Type objects against created policies.

Available extensions
Annotations
  • @JS.new()
  • @staticInterop

Constructors

TrustedTypePolicyFactory()
factory

Properties

defaultPolicy → TrustedTypePolicy?

Available on TrustedTypePolicyFactory, provided by the PropsTrustedTypePolicyFactory extension

no setter
emptyHTML → TrustedHTML

Available on TrustedTypePolicyFactory, provided by the PropsTrustedTypePolicyFactory extension

no setter
emptyScript → TrustedScript

Available on TrustedTypePolicyFactory, provided by the PropsTrustedTypePolicyFactory extension

no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createPolicy(String policyName, [TrustedTypePolicyOptions? policyOptions]) → TrustedTypePolicy

Available on TrustedTypePolicyFactory, provided by the PropsTrustedTypePolicyFactory extension

getAttributeType(String tagName, String attribute, [String? elementNs = '', String? attrNs = '']) → String?

Available on TrustedTypePolicyFactory, provided by the PropsTrustedTypePolicyFactory extension

getPropertyType(String tagName, String property, [String? elementNs = '']) → String?

Available on TrustedTypePolicyFactory, provided by the PropsTrustedTypePolicyFactory extension

isHTML(dynamic value) → bool

Available on TrustedTypePolicyFactory, provided by the PropsTrustedTypePolicyFactory extension

isScript(dynamic value) → bool

Available on TrustedTypePolicyFactory, provided by the PropsTrustedTypePolicyFactory extension

isScriptURL(dynamic value) → bool

Available on TrustedTypePolicyFactory, provided by the PropsTrustedTypePolicyFactory 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