reload method

Future<void> reload(
  1. int? tabId,
  2. ReloadProperties? reloadProperties
)

Reload a tab. tabId The ID of the tab to reload; defaults to the selected tab of the current window.

Implementation

Future<void> reload(
  int? tabId,
  ReloadProperties? reloadProperties,
) async {
  await promiseToFuture<void>($js.chrome.tabs.reload(
    tabId,
    reloadProperties?.toJS,
  ));
}