authenticatedRoute method
Set the authenticated route.
Implementation
NyRouterRoute authenticatedRoute({bool Function()? when}) {
if (when != null && when()) {
_authPage = true;
}
if (when == null) {
_authPage = true;
}
if (_authPage) {
NyNavigator.instance.router.updateRoute(this);
}
return this;
}