getByName method
Returns the Node with name == unitName. If it is not found, returns null
Implementation
Node? getByName(var unitName) {
var nodeList = _getNodiFiglio();
for (var node in nodeList) {
if (unitName == node.name) {
return node;
}
}
return null;
}