SubmenuButton constructor
- Key? key,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - VoidCallback? onOpen,
- VoidCallback? onClose,
- MenuController? controller,
- ButtonStyle? style,
- Offset? alignmentOffset,
- Clip clipBehavior = Clip.hardEdge,
- FocusNode? focusNode,
- MaterialStatesController? statesController,
- Widget? leadingIcon,
- Widget? trailingIcon,
- required Widget? child,
Creates a const SubmenuButton.
The child
and menuChildren
attributes are required.
Implementation
const SubmenuButton({
super.key,
this.onHover,
this.onFocusChange,
this.onOpen,
this.onClose,
this.controller,
this.style,
this.menuStyle,
this.alignmentOffset,
this.clipBehavior = Clip.hardEdge,
this.focusNode,
this.statesController,
this.leadingIcon,
this.trailingIcon,
required this.menuChildren,
required this.child,
});