toRect method

Rect toRect()

Returns the bounding rectangle for this component.

The bounding rectangle is given in parent's coordinate space, and is defined as the smallest axes-aligned rectangle that can fit this component. The aspect ratio of the bounding rectangle may be different from size if the component was scaled and/or rotated.


Rect toRect() => _toRectImpl(positionOfAnchor);