MenuItemBuilder typedef

MenuItemBuilder = List<KeepKeyboardPopupMenuItem> Function(BuildContext context, ClosePopupFn closePopup)

Used to build the item list inside the popup menu. Widgets can call openPopup to open the popup menu. WithKeepKeyboardPopupMenu will then wrap this list in a ListView with vertical padding of _kMenuVerticalPadding.

Implementation

typedef List<KeepKeyboardPopupMenuItem> MenuItemBuilder(
  BuildContext context,
  ClosePopupFn closePopup,
);