Make Element tree root generic (#123352)

Make Element tree root generic
This commit is contained in:
Michael Goderbauer
2023-03-27 13:31:49 -07:00
committed by GitHub
parent 66e6acbe9f
commit 48bb12dfbe
19 changed files with 96 additions and 56 deletions

View File

@@ -379,7 +379,7 @@ abstract class WidgetController {
/// using [Iterator.moveNext].
Iterable<Element> get allElements {
TestAsyncUtils.guardSync();
return collectAllElementsFrom(binding.renderViewElement!, skipOffstage: false);
return collectAllElementsFrom(binding.rootElement!, skipOffstage: false);
}
/// The matching element in the widget tree.