SubmenuButton constructor

const SubmenuButton({
  1. Key? key,
  2. ValueChanged<bool>? onHover,
  3. ValueChanged<bool>? onFocusChange,
  4. VoidCallback? onOpen,
  5. VoidCallback? onClose,
  6. MenuController? controller,
  7. ButtonStyle? style,
  8. MenuStyle? menuStyle,
  9. Offset? alignmentOffset,
  10. Clip clipBehavior = Clip.hardEdge,
  11. FocusNode? focusNode,
  12. MaterialStatesController? statesController,
  13. Widget? leadingIcon,
  14. Widget? trailingIcon,
  15. required List<Widget> menuChildren,
  16. 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,
});