MenuItemButton constructor
- {Key? key,
- VoidCallback? onPressed,
- ValueChanged<
bool> ? onHover, - bool requestFocusOnHover = true,
- ValueChanged<
bool> ? onFocusChange, - FocusNode? focusNode,
- MenuSerializableShortcut? shortcut,
- ButtonStyle? style,
- MaterialStatesController? statesController,
- Clip clipBehavior = Clip.none,
- Widget? leadingIcon,
- Widget? trailingIcon,
- bool closeOnActivate = true,
- required Widget? child}
Creates a const MenuItemButton.
The child attribute is required.
Implementation
const MenuItemButton({
super.key,
this.onPressed,
this.onHover,
this.requestFocusOnHover = true,
this.onFocusChange,
this.focusNode,
this.shortcut,
this.style,
this.statesController,
this.clipBehavior = Clip.none,
this.leadingIcon,
this.trailingIcon,
this.closeOnActivate = true,
required this.child,
});