setupParentData method
- covariant RenderObject child
Override to setup parent data correctly for your children.
You can call this function to set up the parent data for child before the child is added to the parent's child list.
Implementation
void setupParentData(covariant RenderObject child) {
assert(_debugCanPerformMutations);
if (child.parentData is! ParentData) {
child.parentData = ParentData();
}
}