createCancelable static method
- {required Uri fileUri}
Cancelable version of create. See that method for more information.
Implementation
static CancelableOperation<Geodatabase> createCancelable(
{required Uri fileUri}) {
_initializeArcGISEnvironmentIfNeeded();
final coreFileUri = _CString(fileUri.toFilePath());
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_Geodatabase_createAsync(
coreFileUri.bytes, errorHandler);
});
return taskHandle
.toCancelableOperation((element) => element.getValueAsGeodatabase()!);
}