draw method Null safety

PdfLayoutResult? draw(
  1. {PdfGraphics? graphics,
  2. PdfPage? page,
  3. Rect? bounds,
  4. PdfLayoutFormat? format}
)

Draws an element on the graphics or page.

If both graphics and page provide in the arguments then page takes more precedence than graphics

Implementation

PdfLayoutResult? draw(
    {PdfGraphics? graphics,
    PdfPage? page,
    Rect? bounds,
    PdfLayoutFormat? format}) {
  return _draw(graphics, page, bounds, format);
}