Showing
1 changed file
with
1 additions
and
1 deletions
@@ -527,7 +527,7 @@ those middlewares will be run in this order **-8 => 2 => 4 => 5** | @@ -527,7 +527,7 @@ those middlewares will be run in this order **-8 => 2 => 4 => 5** | ||
527 | This function will be called when the page of the called route is being searched for. It takes RouteSettings as a result to redirect to. Or give it null and there will be no redirecting. | 527 | This function will be called when the page of the called route is being searched for. It takes RouteSettings as a result to redirect to. Or give it null and there will be no redirecting. |
528 | 528 | ||
529 | ```dart | 529 | ```dart |
530 | -GetPage redirect( ) { | 530 | +RouteSettings redirect(String route) { |
531 | final authService = Get.find<AuthService>(); | 531 | final authService = Get.find<AuthService>(); |
532 | return authService.authed.value ? null : RouteSettings(name: '/login') | 532 | return authService.authed.value ? null : RouteSettings(name: '/login') |
533 | } | 533 | } |
-
Please register or login to post a comment