getSize method
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(Finder finder) {
TestAsyncUtils.guardSync();
final Element element = finder.evaluate().single;
final RenderBox box = element.renderObject;
assert(box != null);
return box.size;
}