rect property

Rect rect

The rect of this child relative to the boxy, this is only valid after BoxyChild.layout and position have been called.

This getter may return erroneous values if a transform is applied to the child since the coordinate space would be skewed.

See also:

Implementation

Rect get rect {
  final offset = this.offset;
  final size = this.size;
  return Rect.fromLTWH(
    offset.dx,
    offset.dy,
    size.width,
    size.height,
  );
}