document property

PdfDocument? document

The PdfDocument instance if available.

Use load function to load the document; the field does not start loading the document automatically.

If you use the document in async function, your use may encounter sudden document dispose unless you call addListener. In such case, you had better use useDocument function instead.

Implementation

PdfDocument? get document => _document;