query method

Future<List<Tab>> query(
  1. QueryInfo queryInfo
)

Gets all tabs that have the specified properties, or all tabs if no properties are specified.

Implementation

Future<List<Tab>> query(QueryInfo queryInfo) async {
  var $res =
      await promiseToFuture<JSArray>($js.chrome.tabs.query(queryInfo.toJS));
  return $res.toDart.cast<$js.Tab>().map((e) => Tab.fromJS(e)).toList();
}