clean_router.client_browser library

Classes

HashHistory
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.
Route
Maps Map of variables to String Url component and vice versa.
Router
Router consists of multiple named Routes and provides methods for translating Routes to url/path and vice versa.
View
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.

Constants

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

Functions

createPageNavigator() PageNavigator
redirectPost(dynamic url, Map postData) → dynamic
Creates and sends form with postData to url. [...]