[Code Factory] [Intermediate] Flutter Real Practice! State Management, Cache Management, Code Generation, GoRouter, Authentication Logic, etc. Essential Skills to Become an Intermediate!
Written on
·
627
0
The argument type 'String?' can't be assigned to the parameter type 'FutureOr<String?> Function(BuildContext, GoRouterState)?'
goRouter 기존 버전에서 7.0으로 바뀌어서 에러가 뜨는거같은데염 ㅠㅠ
Answer 1
0
안녕하세요.
redirect의 시그니처는 아래와 같이 변경됐습니다.
typedef GoRouterRedirect = FutureOr<String?> Function(
BuildContext context, GoRouterState state);
새로 추가된 GoRouter 7.0 강의 섹션을 참고해주세요
감사합니다.