LimitedBox constructor

LimitedBox({
  1. double maxWidth = double.infinity,
  2. double maxHeight = double.infinity,
  3. Widget? child,
})

Implementation

LimitedBox({
  this.maxWidth = double.infinity,
  this.maxHeight = double.infinity,
  Widget? child,
})  : assert(maxWidth >= 0.0),
      assert(maxHeight >= 0.0),
      super(child: child);