MenuButton constructor
const
MenuButton({
- Key? key,
- required Widget child,
- double emptyLeadingSpace = 16,
- List<
MenuItem> ? subMenu, - VoidCallback? onPressed,
- ContextedCallback? onContextPressed,
- Widget? trailing,
- Widget? leading,
- bool enabled = true,
- FocusNode? focusNode,
- bool autoClose = true,
- 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,
});