PdfRect.fromLBRT constructor

PdfRect.fromLBRT(
  1. double left,
  2. double bottom,
  3. double right,
  4. double top,
)

Creates a rectangle from left, bottom, right and top.

Implementation

factory PdfRect.fromLBRT(
    double left, double bottom, double right, double top) {
  return PdfRect(left, bottom, right - left, top - bottom);
}