update method

Future<Tab?> update(
  1. int? tabId,
  2. UpdateProperties updateProperties
)

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 $js.chrome.tabs
      .update(
        tabId,
        updateProperties.toJS,
      )
      .toDart;
  return $res?.let(Tab.fromJS);
}