replaceState method

void replaceState(
  1. String path, [
  2. String query = ''
])

Changes the browsers URL to the normalized version of the given URL, and replaces the top item on the platform's history stack.

Implementation

void replaceState(String path, [String query = '']) {
  locationStrategy.replaceState(null, '', path, query);
}