i was using go router for flutter app i can pass String parameters between activities and its working now i want to pass list dynamic and am getting error
The argument type 'String' can't be assigned to the parameter type 'List'. (Documentation)
Receiver activity have
class EditUserPage extends StatefulWidget {
final String name;
final List<dynamic> userinformation;
}
on Route builder i have passed my data like below
GoRoute(
path: 'editusers',
name:
'editusers/:name,:userinformation,'
builder: (BuildContext context, GoRouterState state) {
return EditUserPage(
state.params["name"]!,
state.params["userinformation"]!,
)
);
The error comes on this line state.params["userinformation"]!, The argument type 'String' can't be assigned to the parameter type 'List'.