onPortContextMenu property
Callback invoked when a port is right-clicked (context menu).
Parameters: (nodeId, portId, screenPosition) The port direction can be checked via Port.isOutput or Port.isInput.
Implementation
final void Function(
String nodeId,
String portId,
ScreenPosition screenPosition,
)?
onPortContextMenu;