getChildByNamePath method
Resolves a namePath (as produced by getNamePath) to a descendant
node, or null if any segment does not match.
Implementation
Node? getChildByNamePath(Iterable<String> namePath) {
Node? current = this;
for (var name in namePath) {
current = current!.getChildByName(name);
if (current == null) {
return null;
}
}
return current;
}