pushNamed method
Updates the url given a VRouteElement name
We can also specify path parameters to inject into the new path
We can also specify queryParameters, either by directly
putting them is the url or by providing a Map using queryParameters
We can also put a state to the next route, this state will be a router state (this is the only kind of state that we can push) accessible with VRouter.of(context).historyState
After finding the url and taking charge of the path parameters, it updates the url
To specify a name, see VRouteElement.name
Implementation
@Deprecated('Use toNamed instead')
void pushNamed(
String name, {
Map<String, String> pathParameters = const {},
Map<String, String> queryParameters = const {},
Map<String, String> historyState = const {},
}) =>
toNamed(
name,
pathParameters: pathParameters,
queryParameters: queryParameters,
historyState: historyState,
);