createDefaultSyncGeodatabaseParametersCancelable method

CancelableOperation<SyncGeodatabaseParameters> createDefaultSyncGeodatabaseParametersCancelable(
  1. {required Geodatabase geodatabase}
)

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

Implementation

CancelableOperation<SyncGeodatabaseParameters>
    createDefaultSyncGeodatabaseParametersCancelable(
        {required Geodatabase geodatabase}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore
        .RT_GeodatabaseSyncTask_createDefaultSyncGeodatabaseParametersAsync(
            _handle, geodatabase._handle, errorHandler);
  });
  return taskHandle.toCancelableOperation(
      (element) => element.getValueAsSyncGeodatabaseParameters()!);
}