AssetPDFSource constructor

AssetPDFSource(
  1. String assetPath, {
  2. 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;
}