topLeftPosition property
Vector2
get
topLeftPosition
The top-left corner's position in the parent's coordinates.
Implementation
Vector2 get topLeftPosition => positionOfAnchor(Anchor.topLeft);
set
topLeftPosition
(Vector2 point)
Implementation
set topLeftPosition(Vector2 point) {
position += point - topLeftPosition;
}