count method Null safety

int count()

Returns the number of matching Objects.

Implementation

int count() {
  final ptr = malloc<Uint64>();
  try {
    checkObx(C.query_count(_ptr, ptr));
    reachabilityFence(this);
    return ptr.value;
  } finally {
    malloc.free(ptr);
  }
}