dropDownTimeOptions property

List<DropdownMenuItem<String>> get dropDownTimeOptions

Implementation

static List<DropdownMenuItem<String>> get dropDownTimeOptions {
  Map<String, String> options = {
    "Works instantly": "Works instantly",
    "Works rather rapidly": "Works rather rapidly",
    "Works neither rapidly nor slowly": "Works neither rapidly nor slowly",
    "Takes rather long to work": "Takes rather long to work",
    "Takes very long to work": "Takes very long to work",
    "I am not sure": "I am not sure",
    "Not applicable": "Not applicable",
    "": "None of above",
  };

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

  return timeItems;
}