openFutureFile static method

Widget openFutureFile(
  1. Future<String> getFilePath(), {
  2. Key? key,
  3. PdfViewerController? viewerController,
  4. PdfViewerParams? params,
  5. OnError? onError,
  6. Widget loadingBannerBuilder(
    1. BuildContext
    )?,
  7. 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,
    );