geocodeWithSearchValuesCancelable method
- Map<
String, String> searchValues, - {GeocodeParameters? parameters}
Cancelable version of geocodeWithSearchValues. See that method for more information.
Implementation
CancelableOperation<List<GeocodeResult>> geocodeWithSearchValuesCancelable(
Map<String, String> searchValues,
{GeocodeParameters? parameters}) {
final coreSearchValues = searchValues.toDictionary(
keyType: _ElementType.string, valueType: _ElementType.string);
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_LocatorTask_geocodeWithSearchValuesAndParameters(
_handle,
coreSearchValues._handle,
parameters?._handle ?? ffi.nullptr,
errorHandler);
});
return taskHandle
.toCancelableOperation((element) => element.getValueAsList()!);
}