fromUrl method

Widget fromUrl(
  1. String url, {
  2. Key? key,
  3. PlaceholderWidget placeholder = downloadIndicator,
  4. DownloadingErrorWidget errorWidget = errorWidgetHolder,
  5. Map<String, String>? headers,
})

Implementation

Widget fromUrl(
  String url, {
  Key? key,
  PlaceholderWidget placeholder = downloadIndicator,
  DownloadingErrorWidget errorWidget = errorWidgetHolder,
  Map<String, String>? headers,
}) {
  return CachedPDFView(
    'without_cache',
    key: key,
    pdf: this,
    url: url,
    placeholder: placeholder,
    errorWidget: errorWidget,
    headers: headers,
    maxAgeCacheObject: const Duration(microseconds: 0),
    maxNrOfCacheObjects: 0,
  );
}