add method

void add(
  1. Point<num> point,
  2. T data
)

Implementation

void add(Point point, T data) {
  _CellKey cellKey = _cellKey(point);
  _pointData[point] = data;

  if (!_cellMap.containsKey(cellKey)) {
    _cellMap[cellKey] = [];
  }
  _cellMap[cellKey]!.add(point);
}