Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -489,7 +489,7 @@ final middlewares = [ | @@ -489,7 +489,7 @@ final middlewares = [ | ||
| 489 | 이 함수는 호출된 라우트의 페이지를 검색할때 호출됩니다. 리다이렉트한 결과로 RouteSettings을 사용합니다. 또는 null을 주면 리다이렉트 하지 않습니다. | 489 | 이 함수는 호출된 라우트의 페이지를 검색할때 호출됩니다. 리다이렉트한 결과로 RouteSettings을 사용합니다. 또는 null을 주면 리다이렉트 하지 않습니다. | 
| 490 | 490 | ||
| 491 | ```dart | 491 | ```dart | 
| 492 | -GetPage redirect( ) { | 492 | +RouteSettings redirect(String route) { | 
| 493 | final authService = Get.find<AuthService>(); | 493 | final authService = Get.find<AuthService>(); | 
| 494 | return authService.authed.value ? null : RouteSettings(name: '/login') | 494 | return authService.authed.value ? null : RouteSettings(name: '/login') | 
| 495 | } | 495 | } | 
- 
Please register or login to post a comment