allRenderObjects property

Iterable<RenderObject> allRenderObjects

Render objects of all the widgets currently in the widget tree (lazy pre-order traversal).

This will almost certainly include many duplicates since the render object of a StatelessWidget or StatefulWidget is the render object of its child; only RenderObjectWidgets have their own render object.


Iterable<RenderObject> get allRenderObjects {
  return<RenderObject>((Element element) => element.renderObject!);