getRect method Null safety

Rect getRect(
  1. Finder finder
)

Returns the rect of the given widget. This is only valid once the widget's render object has been laid out at least once.

Implementation

Rect getRect(Finder finder) => Rect.fromPoints(getTopLeft(finder), getBottomRight(finder));