replaceState method

void replaceState (String path, [ 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);
}