remove method

bool remove (
  1. int id
)

Removes (deletes) the Object with the ID id. Returns true if an entity was actually removed and false if no entity exists with the given ID.

Implementation

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