getObjectCountInCell method

int getObjectCountInCell(
  1. String cellKey
)

Gets the object count for a specific cell.

Returns 0 if the cell doesn't exist.

Implementation

int getObjectCountInCell(String cellKey) {
  return _spatialGrid[cellKey]?.length ?? 0;
}