remove method

bool remove(
  1. int id
)

Removes (deletes) the Object with the given id. Returns true if the object was present (and thus removed), otherwise returns false.

Implementation

bool remove(int id) {
  final err = C.box_remove(_cBox, id);
  if (err == OBX_NOT_FOUND) return false;
  checkObx(err); // throws on other errors
  return true;
}