JsGlobals class final

Browser-like global aliases that can be explicitly installed into a runtime.

Constructors

JsGlobals({bool window = false, bool self = false})
Creates an explicit set of browser-compatible global aliases.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
Whether no browser-compatible aliases are requested.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
self → bool
Installs globalThis.self = globalThis when true.
final
window → bool
Installs globalThis.window = globalThis when true.
final

Methods

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