getConstraintsForChild method
Get the constraints that should be applied to children
Default implementation passes through the same constraints. Override to modify constraints for children.
Implementation
BoxConstraints getConstraintsForChild(
RenderBox child,
BoxConstraints constraints,
) => constraints;