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(PolylineAnnotation) onLongPress,
}) => impl.longPressInteractionStream
.listen((data) => onLongPress(data.annotation))
.asCancelable();