query method

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

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

Implementation

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