PopupMenuItemBuilder<T> typedef Null safety

PopupMenuItemBuilder<T> = List<PopupMenuEntry<T>> Function(BuildContext context)

Signature used by PopupMenuButton to lazily construct the items shown when the button is pressed.

Used by PopupMenuButton.itemBuilder.

Implementation

typedef PopupMenuItemBuilder<T> = List<PopupMenuEntry<T>> Function(BuildContext context);