toIndex property

int? get toIndex

Implementation

int? get toIndex {
  final pres = calloc.call<Uint64>(sizeOf<Uint64>());
  final ret = JS_ToIndex(_ctx.ref, pres, _ref.ref);
  if (ret != 0) return null;
  try {
    return pres.value;
  } finally {
    calloc.free(pres);
  }
}