remove method

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

Implementation

void remove(Point point, T data) {
  final key = _cellKey(point);
  final points = _cellMap[key];
  points?.removeWhere((item) => item.point == point && item.data == data);
  if (points?.isEmpty ?? false) {
    _cellMap.remove(key);
  }
}