globalContext property - dart:js_interop library (original) (raw)
globalContext top-level property
JSObject getglobalContext
The global scope that is used to find user-declared interop members.
For example:
@JS()
external String get name;
Reading name
will execute JavaScript code like globalContext.name
.
There are subtle differences depending on the compiler, but in general,globalContext can be treated like JavaScript's globalThis
.
Implementation
external JSObject get globalContext;