js_types library

JavaScript values that need identity or lifetime beyond Dart scalar values.

Classes

JsFunction
A borrowed JavaScript function.
JsObject
A borrowed JavaScript object, valid during its callback or Env.withScope.
JsReference<T>
An owned JavaScript reference. Release it with dispose when no longer used.
JsSymbol
A borrowed JavaScript symbol. Its identity is kept when passed back to JS.
JsUndefined

Constants

undefined → const JsUndefined
JavaScript's undefined. Omitted arguments are distinguished by argument count.

Exceptions / Errors

JsException
A value thrown by JavaScript, preserved without string coercion.