boxConstraints method

BoxConstraints boxConstraints({
  1. double? minWidth,
  2. double maxWidth = double.infinity,
  3. double? minHeight,
  4. double maxHeight = double.infinity,
})

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,
  );
}