AnchoredPopupMenuLayout class

Configures sizing and placement behavior for AnchoredPopupMenuButton.

Annotations

Constructors

AnchoredPopupMenuLayout({double minWidth = _anchoredPopupMenuMinWidth, double maxWidth = _anchoredPopupMenuMaxWidth, double screenPadding = _anchoredPopupMenuScreenPadding, double gap = _anchoredPopupMenuGap, AnchoredPopupMenuPlacement placement = .auto})
Creates the layout configuration for an anchored popup menu.
const

Properties

gap → double
Gap between the trigger and popup menu.
final
hashCode → int
The hash code for this object.
no setterinherited
maxWidth → double
Maximum popup menu width.
final
minWidth → double
Minimum popup menu width.
final
placement → AnchoredPopupMenuPlacement
Preferred vertical placement of the popup menu relative to its trigger.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
screenPadding → double
Minimum distance between the popup menu and the viewport edge.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveMenuConstraints({required Rect anchorRect, required Size overlaySize, required EdgeInsets mediaPadding}) → BoxConstraints
Resolves popup menu constraints for the current anchor and viewport.
resolvePlacement({required Rect anchorRect, required Size overlaySize, required EdgeInsets mediaPadding}) → AnchoredPopupMenuPlacement
Resolves the final menu placement for the current overlay and anchor.
toString() → String
A string representation of this object.
inherited

Operators

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