JSCFunctionListEntryGetset constructor

JSCFunctionListEntryGetset(
  1. JSCFunctionType _get,
  2. JSCFunctionType _set, {
  3. bool autoDispose = true,
})

Implementation

JSCFunctionListEntryGetset(this._get, this._set, {bool autoDispose = true})
  : _ref =
        calloc.call(sizeOf<JSCFunctionListEntryGetset_>())
          ..ref.get1 = _get.ref.ref
          ..ref.set1 = _set.ref.ref {
  attach(calloc.nativeFree, _ref.cast(), autoDispose: autoDispose);
}