📅  最后修改于: 2022-03-11 15:03:25.289000             🧑  作者: Mango
List> getDropdownItems() {
List> dropDownItems = [];
for (String currency in currenciesList) {
var newDropdown = DropdownMenuItem(
child: Text(currency),
value: currency,
);
dropDownItems.add(newDropdown);
}
return dropDownItems;
}