navigate method

void navigate(
  1. String url, {
  2. Object? state,
})

Pushes a new browser history entry without reloading the page.

Implementation

void navigate(String url, {Object? state}) {
  web.window.history.pushState(_toJsState(state), '', url);
}