-
카테고리
-
세부 분야
모바일 앱 개발
-
해결 여부
미해결
go Router redirect 에러
23.05.30 13:16 작성 조회수 504
0
The argument type 'String?' can't be assigned to the parameter type 'FutureOr<String?> Function(BuildContext, GoRouterState)?'
goRouter 기존 버전에서 7.0으로 바뀌어서 에러가 뜨는거같은데염 ㅠㅠ
답변을 작성해보세요.
0
코드팩토리
지식공유자2023.05.30
안녕하세요.
redirect의 시그니처는 아래와 같이 변경됐습니다.
typedef GoRouterRedirect = FutureOr<String?> Function(
BuildContext context, GoRouterState state);
새로 추가된 GoRouter 7.0 강의 섹션을 참고해주세요
감사합니다.
답변 1