BoxConstraints.tight constructor

BoxConstraints.tight(
  1. Size size
)

Creates tight constraints that force the given exact size.

Implementation

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