get method
Retrieves the specified BookmarkTreeNode(s).
idOrIdList A single string-valued id, or an array of string-valued ids
Implementation
Future<List<BookmarkTreeNode>> get(Object idOrIdList) async {
var $res = await $js.chrome.bookmarks
.get(switch (idOrIdList) {
String() => idOrIdList.toJS,
List() => idOrIdList.toJSArrayString(),
_ => throw UnsupportedError(
'Received type: ${idOrIdList.runtimeType}. Supported types are: String, List<String>')
})
.toDart;
return $res.toDart
.cast<$js.BookmarkTreeNode>()
.map((e) => BookmarkTreeNode.fromJS(e))
.toList();
}