handleLongPress method

void handleLongPress(
  1. TapPosition position
)

Implementation

void handleLongPress(TapPosition position) {
  _resetDoubleTapHold();

  if (options.onLongPress == null) {
    return;
  }
  final latlng = _offsetToCrs(position.relative!);
  // emit the event
  options.onLongPress!(latlng);
}