setZoom method
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,
));
}