onContextMenu property

void Function(Node<T> node, Offset position)? onContextMenu
final

Called on secondary tap on a node (right-click/long-press for context menu) Receives both the node and the pointer position for menu placement

Implementation

final void Function(Node<T> node, Offset position)? onContextMenu;