longPressEvents method
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}) {
return _annotationInteractionEvents(
instanceName: "$_channelSuffix/$id/long_press")
.cast<PolygonAnnotationInteractionContext>()
.listen((data) => onLongPress(data.annotation))
.asCancelable();
}