makeDropList function
Implementation
List<DropdownMenuItem<String>> makeDropList(List<String> items) {
return items
.map(
(e) => DropdownMenuItem<String>(
value: e,
child: Center(child: Text(e)),
),
)
.toList();
}