go method

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

Changes the browsers URL to the normalized version of the given URL, and pushes a new item onto the platform's history.

Implementation

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