dropDownCostsOptions property

List<DropdownMenuItem<String>> get dropDownCostsOptions

Implementation

static List<DropdownMenuItem<String>> get dropDownCostsOptions {
  Map<String, String> options = {
    "High costs": "High costs",
    "Rather high costs": "Rather high costs",
    "Neither high nor low costs": "Neither high nor low costs",
    "Rather low costs": "Rather low costs",
    "Low costs": "Low costs",
    "I am not sure": "I am not sure",
    "Not applicable": "Not applicable",
    "": "None of above",
  };

  List<DropdownMenuItem<String>> costsItems = [];
  for (MapEntry<String, String> option in options.entries) {
    costsItems.add(
      DropdownMenuItem(
        value: option.key,
        child: Text(option.key),
      ),
    );
  }

  return costsItems;
}