getZoom method

Future<double> getZoom(
  1. int? tabId
)

Gets the current zoom factor of a specified tab. tabId The ID of the tab to get the current zoom factor from; defaults to the active tab of the current window. returns Called with the tab's current zoom factor after it has been fetched.

Implementation

Future<double> getZoom(int? tabId) async {
  var $res = await promiseToFuture<double>($js.chrome.tabs.getZoom(tabId));
  return $res;
}