FilePDFSource class

Decodes a File object as a PDF document.

This class provides functionality to load a PDF document from a File on the local file system.

See also:

  • SfPdfViewer.file, which provides a convenient way to display a PDF using a file.
Inheritance

Constructors

FilePDFSource.new(File file)
Creates a FilePDFSource that decodes the specified File as a PDF document.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBytes(BuildContext context) Future<Uint8List>
Retrieves the bytes of the PDF document from the file.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited