callConstructor method

JSValue callConstructor({
  1. List<JSValue>? argv,
  2. bool autoDispose = true,
})

Implementation

JSValue callConstructor({List<JSValue>? argv, bool autoDispose = true}) {
  argv ??= [];
  return JSValue.ptr(
    _ctx,
    JS_CallConstructor(_ctx.ref, _ref.ref, argv.length, argv.ref),
    autoDispose: autoDispose,
  );
}