reload static method

void reload(
  1. String? url
)

Reloads the page, or navigates to url without adding a history entry.

Implementation

static void reload(String? url) {
  if (url == null) {
    web.window.location.reload();
  } else {
    web.window.location.replace(url);
  }
}