BoxConstraints.tight constructor

BoxConstraints.tight(
  1. PdfPoint size
)

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

Implementation

BoxConstraints.tight(PdfPoint size)
    : minWidth = size.x,
      maxWidth = size.x,
      minHeight = size.y,
      maxHeight = size.y;