MenuItemButton constructor
- Key? key,
- VoidCallback? onPressed,
- ValueChanged<
bool> ? onHover, - bool requestFocusOnHover = true,
- ValueChanged<
bool> ? onFocusChange, - FocusNode? focusNode,
- bool autofocus = false,
- MenuSerializableShortcut? shortcut,
- String? semanticsLabel,
- ButtonStyle? style,
- MaterialStatesController? statesController,
- Clip clipBehavior = Clip.none,
- Widget? leadingIcon,
- Widget? trailingIcon,
- bool closeOnActivate = true,
- Axis overflowAxis = Axis.horizontal,
- 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.autofocus = false,
this.shortcut,
this.semanticsLabel,
this.style,
this.statesController,
this.clipBehavior = Clip.none,
this.leadingIcon,
this.trailingIcon,
this.closeOnActivate = true,
this.overflowAxis = Axis.horizontal,
this.child,
});