JsObject.fromBrowserObject constructor Null safety

JsObject.fromBrowserObject(
  1. Object object
)

Constructs a JsObject that proxies a native Dart object; for expert use only.

Use this constructor only if you wish to get access to JavaScript properties attached to a browser host object, such as a Node or Blob, that is normally automatically converted into a native Dart object.

An exception will be thrown if object has the type bool, num, or String.

Implementation

external factory JsObject.fromBrowserObject(Object object);