containsMany method

bool containsMany (
  1. List<int> ids
)

Returns true if this box contains objects with all of the given ids using a single transaction.

Implementation

bool containsMany(List<int> ids) {
  final contains = allocate<Uint8>();
  try {
    return OBX_id_array.executeWith(ids, (ptr) {
      checkObx(bindings.obx_box_contains_many(_cBox, ptr, contains));
      return contains.value > 0 ? true : false;
    });
  } finally {
    free(contains);
  }
}