descendants property
Get all descendant nodes (BFS traversal).
Implementation
Iterable<LayoutNode> get descendants sync* {
final queue = <LayoutNode>[...children];
while (queue.isNotEmpty) {
final node = queue.removeAt(0);
yield node;
queue.addAll(node.children);
}
}