label property
Implementation
String get label {
switch (type) {
case NodeType.breaker:
return "Automático";
case NodeType.differential:
return "Diferencial";
case NodeType.cable:
return "Cable";
case NodeType.load:
return "Carga";
case NodeType.supply:
return "Red";
case NodeType.ground:
return "Tierra";
default:
return "Elemento";
}
}