getSize method
- FinderBase<
Element> finder
Returns the size of the given widget. This is only valid once the widget's render object has been laid out at least once.
Implementation
Size getSize(finders.FinderBase<Element> finder) {
TestAsyncUtils.guardSync();
final Element element = finder.evaluate().single;
final RenderBox box = element.renderObject! as RenderBox;
return box.size;
}