discontinuedPackage dio_cache_interceptor_objectbox_store has been discontinued and replaced by http_cache_objectbox_store.

contains method

bool contains(
  1. int id
)

Returns true if this box contains an Object with the ID id.

Implementation

bool contains(int id) {
  final contains = malloc<Bool>();
  try {
    checkObx(C.box_contains(_ptr, id, contains));
    return contains.value;
  } finally {
    malloc.free(contains);
  }
}