getSubTree method

Future<List<BookmarkTreeNode>> getSubTree(
  1. String id
)

Retrieves part of the Bookmarks hierarchy, starting at the specified node. id The ID of the root of the subtree to retrieve.

Implementation

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