MenuButton constructor

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

Implementation

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