MenuConfiguration<T> class

OverlayConfiguration that presents its content as a menu via the ambient OverlayManager.

On mobile platforms, adaptiveConversion converts this into a DrawerConfiguration, matching the historical default menuHandler behavior under ShadcnLayer.

Inheritance

Constructors

Creates a MenuConfiguration.
const

Properties

alignment AlignmentGeometry
Menu alignment relative to the anchor.
final
anchorAlignment AlignmentGeometry?
Anchor alignment point.
final
barrierDismissable bool
Whether tapping the barrier dismisses the menu.
final
builder WidgetBuilder
Builds the menu content.
final
clipBehavior Clip
Clipping behavior for the menu content.
final
follow bool
Whether the menu follows the anchor if it moves.
final
hashCode int
The hash code for this object.
no setterinherited
heightConstraint PopoverConstraint
Height constraint mode.
final
key Key?
Widget key for the menu overlay.
final
Whether the menu is modal.
final
offset Offset?
Additional position offset.
final
overlayBarrier OverlayBarrier?
Custom barrier configuration.
final
position Offset?
Explicit position, overrides alignment if provided.
final
rootOverlay bool
Whether to use the root overlay.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widthConstraint PopoverConstraint
Width constraint mode.
final

Methods

adaptiveConversion(BuildContext context) OverlayConfiguration<T>
Returns an equivalent configuration adapted for the current platform, e.g. a PopoverConfiguration becomes a DrawerConfiguration on mobile.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show(BuildContext context) OverlayCompleter<T?>
Actually presents the overlay using this configuration's mechanism.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited