js library
Caution
This package is discontinued. Prefer using
dart:js_interop
for JS interop. See the
JS interop documentation for more
details.
Classes
Constants
- anonymous → const _Anonymous
- An annotation that indicates a JS annotated class is structural and does not have a known JavaScript prototype.
- staticInterop → const _StaticInterop
- staticInterop enables the JS annotated class to be treated as a "static" interop class.
- trustTypes → const _TrustTypes
Functions
-
allowInterop<
F extends Function> (F f) → F -
Returns a wrapper around function
f
that can be called from JavaScript usingpackage:js
JavaScript interop. -
allowInteropCaptureThis(
Function f) → Function -
Returns a wrapper around function
f
that can be called from JavaScript usingpackage:js
JavaScript interop, passing JavaScriptthis
as the first argument.