createDefaultParametersCancelable method

CancelableOperation<ClosestFacilityParameters> createDefaultParametersCancelable()

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

Implementation

CancelableOperation<ClosestFacilityParameters>
    createDefaultParametersCancelable() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ClosestFacilityTask_createDefaultParametersAsync(
        _handle, errorHandler);
  });
  return taskHandle.toCancelableOperation(
      (element) => element.getValueAsClosestFacilityParameters()!);
}