JSValue.makeNull constructor

JSValue.makeNull(
  1. JSContext context, {
  2. bool autoDispose = true,
})

Creates a JavaScript value of the null type.

Implementation

JSValue.makeNull(this.context, {bool autoDispose = true})
  : _ref = JSValueMakeNull(context.ref) {
  attach(calloc.nativeFree, _ref.cast(), autoDispose: autoDispose);
}