PopupMenuItemBuilder<T> typedef

List<PopupMenuEntry<T>> PopupMenuItemBuilder (
  1. 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);