isInput property

bool get isInput

Whether this port can act as an input for connections.

Returns true if the port type is PortType.input. Use this to determine if connections can terminate at this port.

Implementation

bool get isInput => type == PortType.input;