bottom_popup_menu_button library Null safety

Classes

BottomPopupMenuButton<T>
Displays a menu when pressed and calls onSelected when the menu is dismissed because an item was selected. The value passed to onSelected is the value of the selected menu item.
BottomPopupMenuButtonState<T>
The State for a BottomPopupMenuButton.
BottomPopupMenuEntry<T>
A base class for entries in a material design popup menu.
BottomPopupMenuItem<T>
An item in a material design popup menu.
CheckedPopupMenuItem<T>
An item with a checkmark in a material design popup menu.
PopupMenuDivider
A horizontal divider in a material design popup menu.
PopupMenuItemState<T, W extends BottomPopupMenuItem<T>>
The State for BottomPopupMenuItem subclasses.

Functions

showMenu<T>({required BuildContext context, required RelativeRect position, required List<BottomPopupMenuEntry<T>> items, T? initialValue, double? elevation, String? semanticLabel, ShapeBorder? shape, Color? color, bool useRootNavigator = false}) Future<T?>
Show a popup menu that contains the items at position.

Typedefs

PopupMenuCanceled = void Function()
Signature for the callback invoked when a BottomPopupMenuButton is dismissed without selecting an item.
PopupMenuItemBuilder<T> = List<BottomPopupMenuEntry<T>> Function(BuildContext context)
Signature used by BottomPopupMenuButton to lazily construct the items shown when the button is pressed.
PopupMenuItemSelected<T> = void Function(T value)
Signature for the callback invoked when a menu item is selected. The argument is the value of the BottomPopupMenuItem that caused its menu to be dismissed.