CluePopupMenuButton<T> constructor

const CluePopupMenuButton<T>({
  1. Key? key,
  2. List<Widget> itemList = const [],
  3. double menuWidth = 130,
  4. MenuAlign menuAlign = MenuAlign.center,
  5. required Widget child,
  6. required void onTap(
    1. int index
    ),
})

Creates a CluePopupMenuButton.

itemList is the list of menu items to display. menuWidth is the width of the menu. menuAlign specifies the alignment of the menu. child is the widget to display as the button. onTap is the callback function called when a menu item is tapped.

Implementation

const CluePopupMenuButton({
  super.key,
  this.itemList = const [],
  this.menuWidth = 130,
  this.menuAlign = MenuAlign.center,
  required this.child,
  required this.onTap,
});