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