onDocumentChanged property
Function to notify that the document is loaded/changed.
The function is called even if the document is null (it means the document is unloaded). If you want to be notified when the viewer is ready to interact, use onViewerReady instead.
Implementation
final PdfViewerDocumentChangedCallback? onDocumentChanged;