BoxConstraints.loose constructor

BoxConstraints.loose(Size size)

Creates box constraints that forbid sizes larger than the given size.

Implementation

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