setBookmark method

Future<bool> setBookmark(
  1. Bookmark bookmark
)

Sets the Viewpoint of the GeoViewController to the Bookmark.viewpoint.

Parameters:

  • bookmark — The bookmark.

Return Value: A Future of bool.

Implementation

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