constrained method
see ConstrainedBox
Implementation
ConstrainedBox constrained({
Key? key,
double minW = 0.0,
double maxW = double.infinity,
double minH = 0.0,
double maxH = double.infinity,
}) =>
ConstrainedBox(
key: key,
constraints: BoxConstraints(
minWidth: minW,
maxWidth: maxW,
minHeight: minH,
maxHeight: maxH,
),
child: this,
);