ViewConstraints.tight constructor

ViewConstraints.tight(
  1. Size size
)

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

Implementation

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