constrainRect method

PdfRect constrainRect({
  1. double width = double.infinity,
  2. double height = double.infinity,
})

Implementation

PdfRect constrainRect({
  double width = double.infinity,
  double height = double.infinity,
}) {
  final result = PdfPoint(constrainWidth(width), constrainHeight(height));
  return PdfRect.fromPoints(PdfPoint.zero, result);
}