update method

Future<BookmarkTreeNode> update(
  1. String id,
  2. UpdateChanges changes
)

Updates the properties of a bookmark or folder. Specify only the properties that you want to change; unspecified properties will be left unchanged. Note: Currently, only 'title' and 'url' are supported.

Implementation

Future<BookmarkTreeNode> update(
  String id,
  UpdateChanges changes,
) async {
  var $res =
      await promiseToFuture<$js.BookmarkTreeNode>($js.chrome.bookmarks.update(
    id,
    changes.toJS,
  ));
  return BookmarkTreeNode.fromJS($res);
}