getAllInWindow method
- @Deprecated(r'Please use $(ref:tabs.query) <code>{windowId: windowId}</code>.')
- int? windowId
Gets details about all tabs in the specified window.
windowId
Defaults to the current window.
Implementation
@Deprecated(
r'Please use $(ref:tabs.query) <code>{windowId: windowId}</code>.')
Future<List<Tab>> getAllInWindow(int? windowId) async {
var $res = await promiseToFuture<JSArray>(
$js.chrome.tabs.getAllInWindow(windowId));
return $res.toDart.cast<$js.Tab>().map((e) => Tab.fromJS(e)).toList();
}