dropDownDegradedOptions property

List<DropdownMenuItem<String>> get dropDownDegradedOptions

Implementation

static List<DropdownMenuItem<String>> get dropDownDegradedOptions {
  Map<String, String> options = {
    "Works well in depleted environment": "Works well in depleted environment",
    "Works rather well in depleted environment": "Works rather well in depleted environment",
    "Neither works well nor poorly in depleted environment": "Neither works well nor poorly in depleted environment",
    "Does rather not work in depleted environment": "Does rather not work in depleted environment",
    "Does not work at all in depleted environment": "Does not work at all in depleted environment",
    "I am not sure": "I am not sure",
    "Not applicable": "Not applicable",
    "": "None of above",
  };

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

  return degradedItems;
}