onTap property

void Function(Node<T> node, Port port)? onTap
final

Called when a port is tapped.

Check Port.isOutput or Port.isInput to determine the port direction.

Implementation

final void Function(Node<T> node, Port port)? onTap;