isSamePort property
bool
get
isSamePort
Whether this is connecting a port to itself.
This should typically be disallowed as it serves no practical purpose.
Implementation
bool get isSamePort =>
sourceNode.id == targetNode.id && sourcePort.id == targetPort.id;