onNavigation abstract method
void
onNavigation(
clients will call resolver.next(true --> default)
to continue
navigation or resolver.next(false)
to abort navigation
example
Implementation
/*
class AuthGuard extends AutoRouteGuard {
@override
void onNavigation(NavigationResolver resolver, StackRouter router) {
/// resolver.next(true) == we're good, continue navigation
resolver.next(isAuthenticated)
}
}
*/
void onNavigation(
NavigationResolver resolver,
StackRouter router,
);