addAndLayoutChild method
RenderBox?
addAndLayoutChild(
- BoxConstraints childConstraints, {
- required int index,
- RenderBox? after,
- bool parentUsesSize = false,
inherited
Implementation
RenderBox? addAndLayoutChild(
BoxConstraints childConstraints, {
required int index,
RenderBox? after,
bool parentUsesSize = false,
}) {
assert(_debugAssertChildListLocked());
final child = _createOrObtainOneChild(index, after: after);
if (child != null) {
child.layout(childConstraints, parentUsesSize: parentUsesSize);
return child;
}
childManager.setDidUnderflow(true);
return null;
}