JSObject constructor
JSObject(
- dynamic arg, [
- List? arguments
Implementation
JSObject(dynamic arg, [List? arguments])
: this.jsObject = arg is js.JsObject
? arg
: js.JsObject((() {
var clazz = js.context[arg];
if (clazz == null && js.context["wx"] != null) {
clazz = js.context["wx"][arg];
}
if (clazz == null) {
throw arg + " constructor not found!";
}
return clazz;
})(), arguments);