ConstrainedBoxModifier constructor

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

Creates a widget that imposes additional constraints on its child.

The constraints argument must not be null.

Implementation

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