getAllInWindow method
- @Deprecated(r'Please use 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 tabs.query <code>{windowId: windowId}</code>.')
Future<List<Tab>> getAllInWindow(int? windowId) async {
var $res = await $js.chrome.tabs.getAllInWindow(windowId).toDart;
return $res.toDart.cast<$js.Tab>().map((e) => Tab.fromJS(e)).toList();
}