onDocumentLoadFailed property
Called when the document loading fails in SfPdfViewer.
Called in the following scenarios where the load failure occurs
- When any corrupted PDF is loaded.
- When any password-protected document is loaded with invalid or empty password.
- When any improper input source value like wrong URL or file path is given.
- When any non PDF document is loaded.
The error
and description
values in the PdfDocumentLoadFailedDetails
will be updated when the document loading fails.
See also: PdfDocumentLoadFailedDetails.
Implementation
final PdfDocumentLoadFailedCallback? onDocumentLoadFailed;