route method
Navigate to a page with the specified location
.
navigationMode
represents the mode of StandardPageNavigationMode to use during navigation (optional).
Implementation
void route(String location, [StandardPageNavigationMode? navigationMode]) {
Router.of(this).route(location, navigationMode);
}