reevaluateGuards method
Re-builds all routes in stack and reevaluate guarded once by re-visiting the onNavigation method when evaluation logic changes
e.g when the user is no longer authenticated and there are auth-protected routes in the stack
this will have no effect if there's a guard in progress
Implementation
Future<void> reevaluateGuards() async {
final routes = _composeMatchesForReevaluate();
if (routes != null) {
_pages.clear();
await _pushAllGuarded(routes, isReevaluating: true);
}
}