removeId method

bool removeId(
  1. Object? id
)

Remove the first entry whose id equals id. O(nlist + cellSize).

Implementation

bool removeId(Object? id) {
  for (var c = 0; c < nlist; c++) {
    final ids = _cellIds[c];
    for (var i = 0; i < ids.length; i++) {
      if (ids[i] == id) {
        _removeAt(c, i);
        return true;
      }
    }
  }
  return false;
}