dropDownEffectiveOptions property

List<DropdownMenuItem<String>> get dropDownEffectiveOptions

Implementation

static List<DropdownMenuItem<String>> get dropDownEffectiveOptions {
  Map<String, String> options = {
    "Very effective": "Very effective",
    "Rather effective": "Rather effective",
    "Neither effective nor uneffective": "Neither effective nor uneffective",
    "Rather uneffective": "Rather uneffective",
    "Very uneffective": "Very uneffective",
    "I am not sure": "I am not sure",
    "Not applicable": "Not applicable",
    "": "None of above",
  };

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

  return effectiveItems;
}