createDefaultDownloadPreplannedOfflineMapParametersCancelable method
- {required PreplannedMapArea preplannedMapArea}
Cancelable version of createDefaultDownloadPreplannedOfflineMapParameters. See that method for more information.
Implementation
CancelableOperation<DownloadPreplannedOfflineMapParameters>
createDefaultDownloadPreplannedOfflineMapParametersCancelable(
{required PreplannedMapArea preplannedMapArea}) {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore
.RT_OfflineMapTask_createDefaultDownloadPreplannedOfflineMapParametersAsync(
_handle, preplannedMapArea._handle, errorHandler);
});
return taskHandle.toCancelableOperation((element) =>
element.getValueAsDownloadPreplannedOfflineMapParameters()!);
}