here is how i pass parameter as queryParameter , it accept all types , <String, dynamic> :
routes.goNamed(
'confirm',
queryParameters: {
'isLogin': true,
},
);
but here when i want to get that parameter i need to parse that to type because queryParameters is <String, String> and queryParametersAll is <String, List> too .
GoRoute(
name: 'confirm',
path: 'confirm',
builder: (context, state) {
return AuthConfirmPage(
isLogin: bool.parse(state.queryParameters['isLogin']!),
);
},
),
what is the correct way to solve this problem ? i dont want to get bool by convert string via bool.parse .