getTree method

Retrieves the entire Bookmarks hierarchy.

Implementation

Future<List<BookmarkTreeNode>> getTree() async {
  var $res = await promiseToFuture<JSArray>($js.chrome.bookmarks.getTree());
  return $res.toDart
      .cast<$js.BookmarkTreeNode>()
      .map((e) => BookmarkTreeNode.fromJS(e))
      .toList();
}