getChildren method

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

Retrieves the children of the specified BookmarkTreeNode id.

Implementation

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