geocodeWithSuggestResultCancelable method

CancelableOperation<List<GeocodeResult>> geocodeWithSuggestResultCancelable(
  1. SuggestResult suggestResult,
  2. {GeocodeParameters? parameters}
)

Cancelable version of geocodeWithSuggestResult. See that method for more information.

Implementation

CancelableOperation<List<GeocodeResult>> geocodeWithSuggestResultCancelable(
    SuggestResult suggestResult,
    {GeocodeParameters? parameters}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_LocatorTask_geocodeWithSuggestResultAndParameters(
        _handle,
        suggestResult._handle,
        parameters?._handle ?? ffi.nullptr,
        errorHandler);
  });
  return taskHandle
      .toCancelableOperation((element) => element.getValueAsList()!);
}