Creates a render box that imposes a maxWidth or maxHeight on its child if the child is otherwise unconstrained.
The maxWidth
and maxHeight
arguments not be null and must be
non-negative.
Source
RenderLimitedBox({ RenderBox child, double maxWidth: double.INFINITY, double maxHeight: double.INFINITY }) : _maxWidth = maxWidth, _maxHeight = maxHeight, super(child) { assert(maxWidth != null && maxWidth >= 0.0); assert(maxHeight != null && maxHeight >= 0.0); }