AssetPDFSource constructor
AssetPDFSource(
- String assetPath, {
- AssetBundle? bundle,
Creates an AssetPDFSource that fetches the PDF document from the specified asset.
The assetPath
parameter must not be null or empty.
The bundle
parameter is optional. If not provided, the default asset bundle will be used.
Implementation
AssetPDFSource(String assetPath, {AssetBundle? bundle})
: assert(assetPath.isNotEmpty) {
_pdfPath = assetPath;
_bundle = bundle;
}