fitGridSections function
Every painted grid section currently mounted, in tree order.
Implementation
List<RenderFitGridSection> fitGridSections() {
final found = <RenderFitGridSection>[];
void visit(Element element) {
if (element is RenderObjectElement) {
final renderObject = element.renderObject;
if (renderObject is RenderFitGridSection) found.add(renderObject);
}
element.visitChildren(visit);
}
final root = WidgetsBinding.instance.rootElement;
if (root != null) visit(root);
return found;
}