search method
Searches the history for the last visit time of each page matching the query.
Implementation
Future<List<HistoryItem>> search(SearchQuery query) async {
var $res =
await promiseToFuture<JSArray>($js.chrome.history.search(query.toJS));
return $res.toDart
.cast<$js.HistoryItem>()
.map((e) => HistoryItem.fromJS(e))
.toList();
}