getNodeByID method
Implementation
MeshElement? getNodeByID(String id) {
if (id == this.id) {
return this;
}
for (final child in getChildren()) {
if (child is MeshElement) {
final n = child.getNodeByID(id);
if (n != null) {
return n;
}
}
}
return null;
}