jsGlobal top-level property

  1. @JS('globalThis')
JSObject get jsGlobal

Low-level bindings to the JavaScript global scope.

These are only safe to use after the Dart code has determined that it is running in a JS host; on the Dart VM none of these symbols exist.

Implementation

@JS('globalThis')
external JSObject get jsGlobal;