dupAtom method

JSValue dupAtom({
  1. bool autoDispose = true,
})

Implementation

JSValue dupAtom({bool autoDispose = true}) {
  if (_atom == null) {
    throw Exception('atom is null');
  }
  final dup_ctx = _ctx.dup();
  return JSValue.atom_(
    dup_ctx,
    JS_DupAtom(dup_ctx.ref, _atom!),
    autoDispose: autoDispose,
  );
}