ConstrainedBoxModifier constructor
ConstrainedBoxModifier({
- Key? key,
- Widget? child,
- Key? modifierKey,
- 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());