remove method
Removes a retained object by id.
Returns true when an object was removed.
Implementation
bool remove(String id) {
final index = _objects.indexWhere((object) => object.id == id);
if (index < 0) return false;
_remember();
_objects.removeAt(index);
final changedSelection = _selectedObjectIds.remove(id);
render();
if (changedSelection) _emitSelect();
_emitChange();
return true;
}