topLeftWorld property

Offset get topLeftWorld

Axis-aligned world top-left corner of this node's bounds.

This is based on boundsWorld and is intended for UI-like positioning.

Implementation

Offset get topLeftWorld => boundsWorld.topLeft;
set topLeftWorld (Offset value)

Implementation

set topLeftWorld(Offset value) {
  final delta = value - boundsWorld.topLeft;
  if (delta.distanceSquared < kUiEpsilonSquared) return;
  position = position + delta;
}