PdfLayoutFormat constructor

PdfLayoutFormat({
  1. PdfLayoutType? layoutType,
  2. PdfLayoutBreakType? breakType,
  3. Rect? paginateBounds,
})

Initializes a new instance of the PdfLayoutFormat class.

Implementation

PdfLayoutFormat(
    {PdfLayoutType? layoutType,
    PdfLayoutBreakType? breakType,
    Rect? paginateBounds}) {
  this.breakType = breakType ?? PdfLayoutBreakType.fitPage;
  this.layoutType = layoutType ?? PdfLayoutType.paginate;
  if (paginateBounds != null) {
    _paginateBounds = PdfRectangle.fromRect(paginateBounds);
    _boundsSet = true;
  } else {
    _paginateBounds = PdfRectangle.empty;
    _boundsSet = false;
  }
}