Sandbox class

Class that describes what to allow in the iframe.

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<Sandbox>
Set of all values of Sandbox.
final

Static Methods

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

Constants

ALLOW_ALL → const List<Sandbox>
Allow all.
ALLOW_DOWNLOADS → const Sandbox
Allows for downloads to occur with a gesture from the user.
ALLOW_FORMS → const Sandbox
Allows the resource to submit forms. If this keyword is not used, form submission is blocked.
ALLOW_MODALS → const Sandbox
Lets the resource open modal windows.
ALLOW_NONE → const List<Sandbox>
Allow none.
ALLOW_ORIENTATION_LOCK → const Sandbox
Lets the resource lock the screen orientation.
ALLOW_POINTER_LOCK → const Sandbox
Lets the resource use the Pointer Lock API.
ALLOW_POPUPS → const Sandbox
Allows popups (such as window.open(), target="_blank", or showModalDialog()). If this keyword is not used, the popup will silently fail to open.
ALLOW_POPUPS_TO_ESCAPE_SANDBOX → const Sandbox
Lets the sandboxed document open new windows without those windows inheriting the sandboxing. For example, this can safely sandbox an advertisement without forcing the same restrictions upon the page the ad links to.
ALLOW_PRESENTATION → const Sandbox
Lets the resource start a presentation session.
ALLOW_SAME_ORIGIN → const Sandbox
If this token is not used, the resource is treated as being from a special origin that always fails the same-origin policy (potentially preventing access to data storage/cookies and some JavaScript APIs).
ALLOW_SCRIPTS → const Sandbox
Lets the resource run scripts (but not create popup windows).
ALLOW_TOP_NAVIGATION → const Sandbox
Lets the resource navigate the top-level browsing context (the one named _top).
ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION → const Sandbox
Lets the resource navigate the top-level browsing context, but only if initiated by a user gesture.