openFutureFile static method
Widget
openFutureFile(
- Future<
String> getFilePath(), { - Key? key,
- PdfViewerController? viewerController,
- PdfViewerParams? params,
- OnError? onError,
- Widget loadingBannerBuilder()?,
- PdfDocument? docFallback,
Open PDF from the filename returned by async function.
Implementation
static Widget openFutureFile(
Future<String> Function() getFilePath, {
Key? key,
PdfViewerController? viewerController,
PdfViewerParams? params,
OnError? onError,
Widget Function(BuildContext)? loadingBannerBuilder,
PdfDocument? docFallback,
}) =>
openFuture(
getFilePath,
PdfDocument.openFile,
key: key,
viewerController: viewerController,
params: params,
onError: onError,
loadingBannerBuilder: loadingBannerBuilder,
docFallback: docFallback,
);