createRouteResultCancelable static method
- PortalItem portalItem
Cancelable version of createRouteResult. See that method for more information.
Implementation
static CancelableOperation<RouteResult> createRouteResultCancelable(
PortalItem portalItem) {
_initializeArcGISEnvironmentIfNeeded();
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_RouteTask_createRouteResultAsync(
portalItem._handle, errorHandler);
});
return taskHandle
.toCancelableOperation((element) => element.getValueAsRouteResult()!);
}