SpatialHashing<T> constructor

SpatialHashing<T>({
  1. required Size cellSize,
})

Implementation

SpatialHashing({required this.cellSize}) {
  if (!cellSize.width.isFinite ||
      !cellSize.height.isFinite ||
      cellSize.width <= 0 ||
      cellSize.height <= 0) {
    throw ArgumentError.value(
      cellSize,
      'cellSize',
      'Must be finite and positive',
    );
  }
}