MenuAnchor constructor
- {Key? key,
- MenuController? controller,
- FocusNode? childFocusNode,
- MenuStyle? style,
- Offset? alignmentOffset = Offset.zero,
- Clip clipBehavior = Clip.hardEdge,
- bool anchorTapClosesMenu = false,
- VoidCallback? onOpen,
- VoidCallback? onClose,
- bool crossAxisUnconstrained = true,
- MenuAnchorChildBuilder? builder,
- Widget? child}
Creates a const MenuAnchor.
The menuChildren argument is required.
Implementation
const MenuAnchor({
super.key,
this.controller,
this.childFocusNode,
this.style,
this.alignmentOffset = Offset.zero,
this.clipBehavior = Clip.hardEdge,
this.anchorTapClosesMenu = false,
this.onOpen,
this.onClose,
this.crossAxisUnconstrained = true,
required this.menuChildren,
this.builder,
this.child,
});