insert method

void insert(
  1. T obj,
  2. AABB bounds
)

Implementation

void insert(T obj, AABB bounds) {
  _forEachCell(bounds, (key) {
    _cells.putIfAbsent(key, () => []).add(obj);
  });
}