PrinterConstraints.tight constructor

PrinterConstraints.tight(
  1. PrinterSize size
)

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

Implementation

PrinterConstraints.tight(PrinterSize size)
  : minWidth = size.width!,
    maxWidth = size.width!,
    minHeight = size.height!,
    maxHeight = size.height!;