dropDownKnowledgeTimingOptions property

List<DropdownMenuItem<String>> get dropDownKnowledgeTimingOptions

Implementation

static List<DropdownMenuItem<String>> get dropDownKnowledgeTimingOptions {
  Map<String, String> options = {
    "A long time ago": "A long time ago",
    "Some time ago": "Some time ago",
    "Recently": "Recently",
    "I am not sure": "I am not sure",
    "": "None of above",
  };

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

  return knowledgeTimingItems;
}