onContextMenu property

void Function(Annotation annotation, Offset position)? onContextMenu
final

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

Implementation

final void Function(Annotation annotation, Offset position)? onContextMenu;