route method

void route(
  1. String location, [
  2. StandardPageNavigationMode? navigationMode
])

Navigate to a page with the specified location. navigationMode represents the mode of StandardPageNavigationMode to use during navigation (optional). pushParentPage indicates whether to push the parent page when navigating to a child page. default is true.

Implementation

void route(String location, [StandardPageNavigationMode? navigationMode]) {
  Router.of(this).route(location, navigationMode);
}