remove method Null safety

int remove()

Returns the number of removed Objects.

Implementation

int remove() {
  final ptr = malloc<Uint64>();
  try {
    checkObx(C.query_remove(_ptr, ptr));
    return ptr.value;
  } finally {
    malloc.free(ptr);
  }
}