LimitedBox constructor
const
LimitedBox({})
Creates a box that limits its size only when it's unconstrained.
The maxWidth
and maxHeight
arguments must not be negative.
Implementation
const LimitedBox(
{super.key,
this.maxWidth = double.infinity,
this.maxHeight = double.infinity,
this.child})
: assert(maxWidth >= 0.0),
assert(maxHeight >= 0.0);