dropDownWhereItIsRealizedOptions property
List<DropdownMenuItem<String> >
get
dropDownWhereItIsRealizedOptions
Implementation
static List<DropdownMenuItem<String>> get dropDownWhereItIsRealizedOptions {
Map<String, String> options = {
"On-farm": "On-farm",
"Off-farm": "Off-farm",
"Other": "Other",
"": "None of above",
};
List<DropdownMenuItem<String>> whereItIsRealizedItems = [];
for (MapEntry<String, String> option in options.entries) {
whereItIsRealizedItems.add(
DropdownMenuItem(
value: option.key,
child: Text(option.key),
),
);
}
return whereItIsRealizedItems;
}