setBookmarkCancelable method

CancelableOperation<bool> setBookmarkCancelable(
  1. Bookmark bookmark
)

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

Implementation

CancelableOperation<bool> setBookmarkCancelable(Bookmark bookmark) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeoView_setBookmarkAsync(
        _handle, bookmark._handle, errorHandler);
  });
  return taskHandle
      .toCancelableOperation((element) => element.getValueAsBool()!);
}