queryNodes method
Queries nodes for a location (either a point or a rectangle), returning an iterable. By default, this method returns only leaf nodes, though intermediate-level nodes can also be returned by setting the leaves parameter to False.
Implementation
Iterable<RTreeNode<T>> queryNodes(Bounds bounds, {bool leaves = true}) =>
searchNodes(
nodePredicate: (node) => node.bounds.intersects(bounds),
leaves: leaves);