clean_router.client library


PageNavigator wires together History management, Route matching and View rendering. It manages url addresses and bind them to views. It updates url (replaceState, pushState) if the url params are changed in the view.
Maps Map of variables to String Url component and vice versa.
Router consists of multiple named Routes and provides methods for translating Routes to url/path and vice versa.
View is responsible for manipulating data received from server to be used for HTML. Methods of View are called when PageNavigator matches the corresponding route or when is navigated to different location.


PARAM_ROUTE_NAME → const String
When navigating to default view it will get parameters {PARAM_ROUTE_NAME : PARAM_ROUTE_NAME_DEFAULT}
PARAM_TAIL → const String