EdgeBehaviorStrategy class
Defines the positioning behavior of a BaseMenu when it overflows the edge of the screen.
These strategies can be combined. For example, a menu might first attempt to flip to the other side of an anchor, and then shift if it still doesn't fit.
If shift and constrain are false, the menu may be positioned such that it is partially or fully off-screen.
- Annotations
Constructors
- EdgeBehaviorStrategy({bool shift = false, bool flip = false, bool constrain = false})
-
Creates an EdgeBehaviorStrategy.
const
Properties
- constrain → bool
-
The menu will resize to fit within the available space between the anchor
and the screen edge. This is ideal for scrollable menus.
final
- flip → bool
-
The menu will flip across the anchor midpoint if it overflows.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shift → bool
-
The menu will shift to stay within the screen boundaries, potentially
covering the anchor.
final
Methods
-
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