updateIndex abstract method

void updateIndex(
  1. SpatialIndex<T> index,
  2. Op<T> op,
  3. T? getItem(
    1. Key
    )
)

Updates the spatial index based on the operation. getItem allows retrieving the current state of an item by key (useful for Move ops).

Implementation

void updateIndex(SpatialIndex<T> index, Op<T> op, T? Function(Key) getItem);