boxConstraints method
Implementation
BoxConstraints boxConstraints({
double? minWidth,
double maxWidth = double.infinity,
double? minHeight,
double maxHeight = double.infinity,
}) {
return BoxConstraints(
minHeight: minHeight ?? height,
minWidth: minWidth ?? width,
maxHeight: maxHeight,
maxWidth: maxWidth,
);
}