updateBookmark method

void updateBookmark(
  1. UDocBookmark bookmark
)

Implementation

void updateBookmark(UDocBookmark bookmark) {
  final int index = _bookmarks.indexWhere((UDocBookmark existing) => existing.id == bookmark.id);
  if (index < 0) return;
  _checkpoint();
  _bookmarks[index] = bookmark;
  _commit();
}