create method

Future<BookmarkTreeNode> create(
  1. CreateDetails bookmark
)

Creates a bookmark or folder under the specified parentId. If url is NULL or missing, it will be a folder.

Implementation

Future<BookmarkTreeNode> create(CreateDetails bookmark) async {
  var $res = await promiseToFuture<$js.BookmarkTreeNode>(
      $js.chrome.bookmarks.create(bookmark.toJS));
  return BookmarkTreeNode.fromJS($res);
}