renderObjectList<T extends RenderObject> method Null safety

Iterable<T> renderObjectList<T extends RenderObject>(
  1. Finder finder
)

The render objects of the matching widgets in the widget tree.

Implementation

Iterable<T> renderObjectList<T extends RenderObject>(Finder finder) {
  TestAsyncUtils.guardSync();
  return finder.evaluate().map<T>((Element element) {
    final T result = element.renderObject! as T;
    return result;
  });
}