The matching widgets in the widget tree.
- Use widget if you only expect to match one widget.
- Use firstWidget if you expect to match several but only want the first.
Source
Iterable<Widget/*=T*/> widgetList/*<T extends Widget>*/(Finder finder) {
TestAsyncUtils.guardSync();
return finder.evaluate().map/*<T>*/((Element element) {
// TODO(ianh): simplify once the VM can infer the return type
dynamic/*=T*/ result = element.widget;
return result;
});
}