remove method

void remove(
  1. String objectId
)

Remove an object from the spatial index

Implementation

void remove(String objectId) {
  final object = _objects.remove(objectId);
  if (object != null) {
    _removeFromSpatialGrid(object);
    _spatialRects.remove(objectId);
    _invalidateCache();
  }
}