MenuButton constructor

const MenuButton({
  1. Key? key,
  2. required Widget child,
  3. double emptyLeadingSpace = 16,
  4. List<MenuItem>? subMenu,
  5. VoidCallback? onPressed,
  6. ContextedCallback? onContextPressed,
  7. Widget? trailing,
  8. Widget? leading,
  9. bool enabled = true,
  10. FocusNode? focusNode,
  11. bool autoClose = true,
  12. PopoverController? popoverController,
})

Implementation

const MenuButton({
  super.key,
  required this.child,
  this.emptyLeadingSpace = 16,
  this.subMenu,
  this.onPressed,
  this.onContextPressed,
  this.trailing,
  this.leading,
  this.enabled = true,
  this.focusNode,
  this.autoClose = true,
  this.popoverController,
});