RenderConstrainedBox constructor

RenderConstrainedBox({
  1. RenderBox? child,
  2. required BoxConstraints additionalConstraints,
})

Creates a render box that constrains its child.

The additionalConstraints argument must be valid.

Implementation

RenderConstrainedBox({
  RenderBox? child,
  required BoxConstraints additionalConstraints,
}) : assert(additionalConstraints.debugAssertIsValid()),
     _additionalConstraints = additionalConstraints,
     super(child);