MenuAnchor constructor
- Key? key,
- MenuController? controller,
- FocusNode? childFocusNode,
- MenuStyle? style,
- Offset? alignmentOffset = Offset.zero,
- Clip clipBehavior = Clip.hardEdge,
- @Deprecated('Use consumeOutsideTap instead. ' 'This feature was deprecated after v3.16.0-8.0.pre.') bool anchorTapClosesMenu = false,
- bool consumeOutsideTap = 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,
@Deprecated(
'Use consumeOutsideTap instead. '
'This feature was deprecated after v3.16.0-8.0.pre.',
)
this.anchorTapClosesMenu = false,
this.consumeOutsideTap = false,
this.onOpen,
this.onClose,
this.crossAxisUnconstrained = true,
required this.menuChildren,
this.builder,
this.child,
});