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