createParametersCancelable method
- {required FeatureCollection collection}
Cancelable version of createParameters. See that method for more information.
Implementation
CancelableOperation<RouteParameters> createParametersCancelable(
{required FeatureCollection collection}) {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_RouteTask_createParametersAsync(
_handle, collection._handle, errorHandler);
});
return taskHandle.toCancelableOperation(
(element) => element.getValueAsRouteParameters()!);
}