set method
Implementation
void set(T id, Rect bounds) {
final newBounds = _validatedBounds(bounds, 'bounds');
final oldBounds = _boundsById[id];
if (oldBounds == newBounds) return;
if (oldBounds != null) _removeFromCells(id, oldBounds);
_boundsById[id] = newBounds;
for (final key in _cells(newBounds)) {
_cellMap.putIfAbsent(key, () => <T>{}).add(id);
}
}