update method
Modifies the properties of a tab. Properties that are not specified in
updateProperties
are not modified.
tabId
Defaults to the selected tab of the current
window.
Implementation
Future<Tab?> update(
int? tabId,
UpdateProperties updateProperties,
) async {
var $res = await promiseToFuture<$js.Tab?>($js.chrome.tabs.update(
tabId,
updateProperties.toJS,
));
return $res?.let(Tab.fromJS);
}