addAndMergeSubtree method
Implementation
void addAndMergeSubtree(RouterNode<T> other) {
final node = children[other.name];
if (node == null) {
children[other.name] = other;
return;
}
node.data ??= other.data;
for (final child in other.children.values) {
node.addAndMergeSubtree(child);
}
}