JSClassDef constructor

JSClassDef(
  1. JSContext _ctx,
  2. JSClassDefRef _ref, {
  3. bool autoDispose = true,
})

Implementation

JSClassDef(this._ctx, this._ref, {bool autoDispose = true}) {
  attach(calloc.nativeFree, _ref.cast(), autoDispose: autoDispose);
}