OverlayMenuPlacement class

Where the menu sits relative to the widget it is anchored to.

Constructors

OverlayMenuPlacement({MenuPosition position = MenuPosition.bottom, MenuAlignment alignment = MenuAlignment.start, Offset offset = Offset.zero})
const

Properties

alignment → MenuAlignment
Cross-axis alignment relative to the target.
final
hashCode → int
The hash code for this object.
no setteroverride
offset → Offset
Pixel offset added to the position on each axis. The menu is flipped and clamped to the screen afterwards. A flip to the opposite side mirrors the main-axis component, so a gap from the target stays a gap.
final
position → MenuPosition
Which side of the target the menu appears on.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({MenuPosition? position, MenuAlignment? alignment, Offset? offset}) → OverlayMenuPlacement
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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