menuEntryByLabel<T> function
A builder of dropdown menu entries that shows the text itemLabel of each item.
Implementation
DropdownMenuEntry<T> Function(T) menuEntryByLabel<T>(String Function(T item) itemLabel) =>
(item) => DropdownMenuEntry(value: item, label: itemLabel(item));