Home > Software design >  Error: The argument type 'List<DropdownMenuItem<dynamic>>' can't be assig
Error: The argument type 'List<DropdownMenuItem<dynamic>>' can't be assig

Time:11-30

[enter image description here](https://i.stack.imgur.com/Oz8T2.png)I want to access list from the currincies but fail

CodePudding user response:

Change :

List<DropDownMenuItem>

with:

List<DropDownMenuItem<String>>

in the function type.

  • Related