PrototypeConstrainedBox constructor
const
PrototypeConstrainedBox({})
Creates a widget that imposes the prototype constraints on its child.
The prototype widget is used as a reference for applying constraints to the child.
The horizontalConstraint
and verticalConstraint
parameters allow you
to specify the constraint type for each axis independently.
Implementation
const PrototypeConstrainedBox({
super.key,
required this.prototype,
required this.child,
this.constrainMinWidth = false,
this.constrainMaxWidth = false,
this.constrainMinHeight = false,
this.constrainMaxHeight = false,
});