dropDownFarmAndFarmingSystemOptions property

List<DropdownMenuItem<String>> get dropDownFarmAndFarmingSystemOptions

Implementation

static List<DropdownMenuItem<String>> get dropDownFarmAndFarmingSystemOptions {
  Map<String, String> options = {
    "Mainly Home Consumption": "Mainly Home Consumption",
    "Mixed Home Consumption and Commercial": "Mixed Home Consumption and Commercial",
    "Mainly commercial": "Mainly commercial",
    "Other": "Other",
    "I am not sure": "I am not sure",
    "": "None of above",
  };

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

  return farmAndFarmingSystemItems;
}