detectLanguage method

Future<String> detectLanguage(
  1. int? tabId
)

Detects the primary language of the content in a tab. tabId Defaults to the active tab of the current window.

Implementation

Future<String> detectLanguage(int? tabId) async {
  var $res = await $js.chrome.tabs.detectLanguage(tabId).toDart;
  return $res.toDart;
}