createDefaultSyncGeodatabaseParametersWithSyncDirectionCancelable method
- {required Geodatabase geodatabase,
- required SyncDirection syncDirection}
Cancelable version of createDefaultSyncGeodatabaseParametersWithSyncDirection. See that method for more information.
Implementation
CancelableOperation<SyncGeodatabaseParameters>
createDefaultSyncGeodatabaseParametersWithSyncDirectionCancelable(
{required Geodatabase geodatabase,
required SyncDirection syncDirection}) {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore
.RT_GeodatabaseSyncTask_createDefaultSyncGeodatabaseParametersWithSyncDirectionAsync(
_handle,
geodatabase._handle,
syncDirection.coreValue,
errorHandler);
});
return taskHandle.toCancelableOperation(
(element) => element.getValueAsSyncGeodatabaseParameters()!);
}