icon property
Implementation
IconData get icon {
switch (type) {
case NodeType.breaker:
return Icons.toggle_off;
case NodeType.differential:
return Icons.safety_check;
case NodeType.cable:
return Icons.timeline;
case NodeType.load:
return Icons.lightbulb_outline;
case NodeType.supply:
return Icons.power;
case NodeType.ground:
return Icons.vertical_align_bottom;
default:
return Icons.check_box_outline_blank;
}
}