queryNodes method

List<Node<T>> queryNodes(
  1. Rect bounds
)

Get all nodes that intersect with the given bounds

Implementation

List<Node<T>> queryNodes(Rect bounds) {
  final adapters = _spatialIndex.query(bounds);
  return adapters.map((adapter) => adapter.node).toList();
}