menuEntryByLabel<T> function

DropdownMenuEntry<T> Function(T) menuEntryByLabel<T>(
  1. String itemLabel(
    1. T item
    )
)

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));