query method

Retrieves all entries that match the QueryInfo properties. Properties that are not provided will not be matched. |info|: The properties to search for. |Returns|: Resolves once the entries have been matched.

Implementation

Future<List<ReadingListEntry>> query(QueryInfo info) async {
  var $res = await $js.chrome.readingList.query(info.toJS).toDart;
  return $res.toDart
      .cast<$js.ReadingListEntry>()
      .map((e) => ReadingListEntry.fromJS(e))
      .toList();
}