BoxConstraints.loose constructor

BoxConstraints.loose(
  1. Size size
)

Creates loose constraints that allow sizes from zero up to the given size.

Implementation

BoxConstraints.loose(Size size)
    : minWidth = 0,
      maxWidth = size.width,
      minHeight = 0,
      maxHeight = size.height;