openFutureData static method

Widget openFutureData(
  1. Future<Uint8List> getData(), {
  2. Key? key,
  3. PdfViewerController? viewerController,
  4. PdfViewerParams? params,
  5. OnError? onError,
  6. Widget loadingBannerBuilder(
    1. BuildContext
    )?,
  7. PdfDocument? docFallback,
})

Open PDF data on byte array returned by async function.

Implementation

static Widget openFutureData(
  Future<Uint8List> Function() getData, {
  Key? key,
  PdfViewerController? viewerController,
  PdfViewerParams? params,
  OnError? onError,
  Widget Function(BuildContext)? loadingBannerBuilder,
  PdfDocument? docFallback,
}) =>
    openFuture(
      getData,
      PdfDocument.openData,
      key: key,
      viewerController: viewerController,
      params: params,
      onError: onError,
      loadingBannerBuilder: loadingBannerBuilder,
      docFallback: docFallback,
    );