getZoomSettings method

Future<ZoomSettings> getZoomSettings(
  1. int? tabId
)

Gets the current zoom settings of a specified tab. tabId The ID of the tab to get the current zoom settings from; defaults to the active tab of the current window. returns Called with the tab's current zoom settings.

Implementation

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