nodes property

Implementation

List<QuadTreeNodeDebugInfo> get nodes {
  final list = <QuadTreeNodeDebugInfo>[this];
  for (var i = 0; i < node.children.length; i++) {
    final node = this.node.children[i];
    if (node == null) {
      continue;
    }

    final nodeRect = QuadTree._computeBox(rect, _QuadTreeZone.fromIndex(i));
    final dbg = QuadTreeNodeDebugInfo(nodeRect, node, cd);
    list.add(dbg);
    list.addAll(dbg.nodes);
  }
  return list;
}