fromAsset method

Widget fromAsset(
  1. String pathOfAsset, {
  2. Key? key,
  3. AssetErrorWidget errorWidget = errorWidgetHolder,
  4. LoadingWidget loadingWidget = loadingWidgetHolder,
})

Implementation

Widget fromAsset(
  String pathOfAsset, {
  Key? key,
  AssetErrorWidget errorWidget = errorWidgetHolder,
  LoadingWidget loadingWidget = loadingWidgetHolder,
}) {
  return AssetPDFView(
    key: key,
    pdf: this,
    assetPath: pathOfAsset,
    errorWidget: errorWidget,
    loadingWidget: loadingWidget,
  );
}