JSValue.makeUndefined constructor

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

Creates a JavaScript value of the undefined type.

Implementation

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