JSValue constructor

JSValue(
  1. JSContext _ctx,
  2. JSValueRef _ref, {
  3. JSValueUnionRef? union,
  4. String? str,
  5. bool autoDispose = true,
})

Implementation

JSValue(
  this._ctx,
  this._ref, {
  JSValueUnionRef? union,
  String? str,
  bool autoDispose = true,
})  : _unionRef = union,
      _str = str?.toNativeUtf8() {
  attach(Q_JS_FreeValueAddress.cast(), _ref.cast(), autoDispose: autoDispose);
}