isOutputToInput property

bool get isOutputToInput

Whether this connection goes from an output port to an input port.

This is the typical and recommended connection direction.

Implementation

bool get isOutputToInput =>
    sourceNode.outputPorts.contains(sourcePort) &&
    targetNode.inputPorts.contains(targetPort);