constraints method
Wrap if necessary.
child
: The child widget.
Implementation
@protected
Widget constraints(Widget child) {
if (spwmlParams.p.constrains != null) {
return ConstrainedBox(
constraints: spwmlParams.p.constrains!, child: child);
} else {
return child;
}
}