reverseGeocodeCancelable method
- {required ArcGISPoint location,
- ReverseGeocodeParameters? parameters}
Cancelable version of reverseGeocode. See that method for more information.
Implementation
CancelableOperation<List<GeocodeResult>> reverseGeocodeCancelable(
{required ArcGISPoint location, ReverseGeocodeParameters? parameters}) {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_LocatorTask_reverseGeocodeCombined(_handle,
location._handle, parameters?._handle ?? ffi.nullptr, errorHandler);
});
return taskHandle
.toCancelableOperation((element) => element.getValueAsList()!);
}