longPressEvents method

Cancelable longPressEvents({
  1. required dynamic onLongPress(
    1. PolygonAnnotation
    ),
})

Registers long press event callbacks for the annotations managed by this manager.

Note: This event will be triggered simultaneously with the dragEvents onBegin if the annotation is draggable.

Implementation

Cancelable longPressEvents({
  required Function(PolygonAnnotation) onLongPress,
}) => impl.longPressInteractionStream
    .listen((data) => onLongPress(data.annotation))
    .asCancelable();