solveServiceAreaCancelable method

CancelableOperation<ServiceAreaResult> solveServiceAreaCancelable(
  1. {required ServiceAreaParameters serviceAreaParameters}
)

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

Implementation

CancelableOperation<ServiceAreaResult> solveServiceAreaCancelable(
    {required ServiceAreaParameters serviceAreaParameters}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ServiceAreaTask_solveServiceAreaAsync(
        _handle, serviceAreaParameters._handle, errorHandler);
  });
  return taskHandle.toCancelableOperation(
      (element) => element.getValueAsServiceAreaResult()!);
}