fromUrl method
Widget
fromUrl(
- String url, {
- Key? key,
- PlaceholderWidget placeholder = downloadIndicator,
- DownloadingErrorWidget errorWidget = errorWidgetHolder,
})
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,
);
}