nodesIn method
Gets all nodes within bounds.
Implementation
List<Node<T>> nodesIn(Rect bounds) {
return _grid
.query(bounds)
.whereType<NodeSpatialItem>()
.map((item) => _nodes[item.nodeId])
.whereType<Node<T>>()
.toList();
}