setZoom method

Future<void> setZoom(
  1. int? tabId,
  2. double zoomFactor
)

Zooms a specified tab. tabId The ID of the tab to zoom; defaults to the active tab of the current window. zoomFactor The new zoom factor. A value of 0 sets the tab to its current default zoom factor. Values greater than 0 specify a (possibly non-default) zoom factor for the tab. returns Called after the zoom factor has been changed.

Implementation

Future<void> setZoom(
  int? tabId,
  double zoomFactor,
) async {
  await promiseToFuture<void>($js.chrome.tabs.setZoom(
    tabId,
    zoomFactor,
  ));
}