PdfRect.fromPoints constructor

PdfRect.fromPoints(
  1. PdfPoint offset,
  2. PdfPoint size
)

Creates a rectangle from origin and size points.

Implementation

factory PdfRect.fromPoints(PdfPoint offset, PdfPoint size) {
  return PdfRect(offset.x, offset.y, size.x, size.y);
}