createDefaultGenerateGeodatabaseParametersCancelable method

CancelableOperation<GenerateGeodatabaseParameters> createDefaultGenerateGeodatabaseParametersCancelable(
  1. {required Geometry extent}
)

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

Implementation

CancelableOperation<GenerateGeodatabaseParameters>
    createDefaultGenerateGeodatabaseParametersCancelable(
        {required Geometry extent}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore
        .RT_GeodatabaseSyncTask_createDefaultGenerateGeodatabaseParametersAsync(
            _handle, extent._handle, errorHandler);
  });
  return taskHandle.toCancelableOperation(
      (element) => element.getValueAsGenerateGeodatabaseParameters()!);
}