remove method

void remove(
  1. Point<num> point
)

Implementation

void remove(Point point) {
  final key = _cellKey(point);
  if (_pointData.containsKey(point)) {
    _pointData.remove(point); // remove the data

    // cell map must have key then
    _cellMap[key]!.remove(point); // remove from spatial hash
    if (_cellMap[key]!.isEmpty) {
      _cellMap.remove(key);
    }
  }
}