A lifecycle interface that allows conditionally activating a new route.
Component classes should
implement this if they will be navigated to as
part of a route definition and would like to determine if the route should
Some example uses could include only allowing logged in users access to a "profile editor" component (not as a security measure) or to record what the previous route is for analytics before navigating.
RouterState current, RouterState next) → Future< bool>
- Called by the router when a transition is requested from router states. [...]
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
Returns a string representation of this object.