RelativePosition class

A position relative to another point in a 2-dimensional plane.

A pair originX and originY defines how to align relative to the point.

Constructors

RelativePosition({Alignment? originX = Alignment.Start, Alignment? originY = Alignment.Start, String? animationOrigin = _AnimationOrigins.DOWN_RIGHT})
const

Properties

animationOrigin String?
final
hashCode int
The hash code for this object.
no setterinherited
originX Alignment?
final
originY Alignment?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

flipRelativePosition() RelativePosition
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Constants

AdjacentBottom → const RelativePosition
AdjacentBottomEdge → const List<RelativePosition>
Offsets that'll position the popup adjacent to the bottom edge of the origin element.
AdjacentBottomLeft → const RelativePosition
AdjacentBottomRight → const RelativePosition
AdjacentCardinal → const List<RelativePosition>
Offsets that'll position the popup adjacent to the origin element in one of the four cardinal directions: directly above, below, to the left, or to the right.
AdjacentLeft → const RelativePosition
AdjacentLeftBottom → const RelativePosition
AdjacentLeftEdge → const List<RelativePosition>
Offsets that'll position the popup adjacent to the top edge of the origin element.
AdjacentLeftTop → const RelativePosition
AdjacentRight → const RelativePosition
AdjacentRightBottom → const RelativePosition
AdjacentRightEdge → const List<RelativePosition>
Offsets that'll position the popup adjacent to the right edge of the origin element.
AdjacentRightTop → const RelativePosition
AdjacentTop → const RelativePosition
AdjacentTopEdge → const List<RelativePosition>
Offsets that'll position the popup adjacent to the top edge of the origin element.
AdjacentTopLeft → const RelativePosition
AdjacentTopRight → const RelativePosition
ComprehensiveOffsetPositions → const List<List<RelativePosition>>
Comprehensive offset positions; contains all positions that are immediately adjacent to but not overlapping the target.
InlineBottom → const RelativePosition
A position that starts at the origin and flows downwards.
InlineBottomLeft → const RelativePosition
A position that starts at the origin and flows downwards and left
InlineBottomRight → const RelativePosition
A position that starts at the origin and flows downwards and right
InlinePositions → const List<RelativePosition>
A set of RelativePositions that are appropriate for inline-type editors such as dropdown(s) that will appear at the point and either flow down or up; as well as left or right, depending on available space.
InlineTop → const RelativePosition
A position that starts at the origin and flows upwards.
InlineTopLeft → const RelativePosition
A position that starts at the origin and flows upwards and left
InlineTopRight → const RelativePosition
A position that starts at the origin and flows upwards and right
OffsetBottomLeft → const RelativePosition
A position that starts at the origin's bottom left point and flows downwards and to the left.
OffsetBottomRight → const RelativePosition
A position that starts at the origin's bottom right point and flows downwards and to the right.
OffsetPositions → const List<RelativePosition>
A set of RelativePositions that are appropriate for offset-type menus that appear usually offset of one of the four points of the origin (e.g. bottom right, bottom left, top right, top left).
OffsetTopLeft → const RelativePosition
A position that starts at the origin's top left point and flows upwards and to the left.
OffsetTopRight → const RelativePosition
A position that starts at the origin's top right point and flows upwards and to the right.
overlapAlignments → const List<RelativePosition>
A set of RelativePositions that are covering the point.