constrain method

PdfPoint constrain(
  1. PdfPoint size
)

Implementation

PdfPoint constrain(PdfPoint size) {
  final result = PdfPoint(constrainWidth(size.x), constrainHeight(size.y));
  return result;
}