PdfDocumentBuilder typedef Null safety

PdfDocumentBuilder = Widget Function(BuildContext context, PdfDocument? pdfDocument, int pageCount)

Function definition to build widget tree for a PDF document.

pdfDocument is the PDF document and it is valid until the corresponding PdfDocumentLoader is in the widget tree. It may be null. pageCount indicates the number of pages in it.

Implementation

typedef Widget PdfDocumentBuilder(BuildContext context, PdfDocument? pdfDocument, int pageCount);