dropDownLabourOptions property
List<DropdownMenuItem<String> >
get
dropDownLabourOptions
Implementation
static List<DropdownMenuItem<String>> get dropDownLabourOptions {
Map<String, String> options = {
"High labour required": "High labour required",
"Rather high labour required": "Rather high labour required",
"Neither high nor low labout required": "Neither high nor low labout required",
"Rather low labour required": "Rather low labour required",
"Low labour required": "Low labour required",
"I am not sure": "I am not sure",
"Not applicable": "Not applicable",
"": "None of above",
};
List<DropdownMenuItem<String>> labourItems = [];
for (MapEntry<String, String> option in options.entries) {
labourItems.add(
DropdownMenuItem(
value: option.key,
child: Text(option.key),
),
);
}
return labourItems;
}