BoxConstraints.tight constructor

BoxConstraints.tight(Size size)

Creates box constraints that is respected only by the given size.

Implementation

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