JSPropertyEnum constructor

JSPropertyEnum(
  1. bool isEnumerable,
  2. int atom, {
  3. bool autoDispose = true,
})

Implementation

JSPropertyEnum(bool isEnumerable, int atom, {bool autoDispose = true}) {
  _ref = calloc.call(sizeOf<JSPropertyEnum_>())
    ..ref.atom = atom
    ..ref.is_enumerable = isEnumerable ? 0 : 1;
  attach(calloc.nativeFree, _ref.cast(), autoDispose: autoDispose);
}