buildItems method
Implementation
List<PopupMenuItem<String>> buildItems() {
return map.keys
.toList()
.map((e) => PopupMenuItem<String>(
value: e,
child: Wrap(
spacing: 10,
children: <Widget>[
Icon(map[e], color: Colors.blue),
Text(e),
],
)))
.toList();
}