PDFSource class abstract
Represents a base class of PDF document source.
This abstract class defines the interface for various sources of PDF documents, such as network, asset, file, or memory. Subclasses should implement the getBytes method to provide the specific logic for retrieving the PDF data.
See also:
- URLPDFSource, for fetching a PDF from a URL.
- AssetPDFSource, for loading a PDF from app assets.
- FilePDFSource, for loading a PDF from a local file.
- BytePDFSource, for loading a PDF stored in memory.
- Implementers
Constructors
- PDFSource.new()
-
Abstract const constructor. This constructor enables subclasses to provide
const constructors so that they can be used in const expressions.
const
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 byte data of the PDF document. This method should be implemented by subclasses to provide the specific logic for obtaining the PDF data from their respective sources.
-
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