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 $js.chrome.bookmarks.create(bookmark.toJS).toDart;
  return BookmarkTreeNode.fromJS($res);
}