ConstrainedBox constructor

ConstrainedBox({
  1. Key? key,
  2. required BoxConstraints constraints,
  3. Widget? child,
})

Creates a widget that imposes additional constraints on its child.

Implementation

ConstrainedBox({super.key, required this.constraints, this.child})
    : assert(constraints.debugAssertIsValid());