A lifecycle interface that allows conditionally deactivating a route.
This interface is checked after constructing the components necessary to resolve the next RouterState.
An example use case is preventing deactivation if the current and next route haven't changed, but navigation was triggered for another reason such as an added query parameter.
RouterState current, RouterState next) → Future< bool>
- Called by the router when a transition is requested between router states. [...]
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
Returns a string representation of this object.