setZoomSettings method
Sets the zoom settings for a specified tab, which define how zoom changes
are handled. These settings are reset to defaults upon navigating the tab.
tabId
The ID of the tab to change the zoom settings for; defaults to
the active tab of the current window.
zoomSettings
Defines how zoom changes are handled and at what scope.
returns
Called after the zoom settings are changed.
Implementation
Future<void> setZoomSettings(
int? tabId,
ZoomSettings zoomSettings,
) async {
await promiseToFuture<void>($js.chrome.tabs.setZoomSettings(
tabId,
zoomSettings.toJS,
));
}