traverse method
Implementation
@override
SeoTreeNode? traverse() {
final children = <Element>[];
context.visitChildElements((element) => children.add(element));
return _Node(
parent: null,
children: children
.map(_traverse)
.expand((node) => node.seo ? [node] : node.children)
.toList(),
);
}