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 promiseToFuture<String>($js.chrome.tabs.detectLanguage(tabId));
  return $res;
}