removeId method
Remove the first entry whose id equals id. Returns true if
something was removed. O(N) — this class is meant for small-to-
medium in-memory indices; a paged variant is a follow-up.
Implementation
bool removeId(Object? id) {
for (var i = 0; i < _ids.length; i++) {
if (_ids[i] == id) {
_removeAt(i);
return true;
}
}
return false;
}