visitChildren method Null safety
- RenderObjectVisitor visitor
override
Calls visitor for each immediate child of this render object.
Override in subclasses with children and call the visitor for each child.
Implementation
@override
void visitChildren(RenderObjectVisitor visitor) {
ChildType? child = _firstChild;
while (child != null) {
visitor(child);
final ParentDataType childParentData = child.parentData! as ParentDataType;
child = childParentData.nextSibling;
}
}