openFutureData static method
Widget
openFutureData(
- Future<
Uint8List> getData(), { - Key? key,
- PdfViewerController? viewerController,
- PdfViewerParams? params,
- OnError? onError,
- Widget loadingBannerBuilder()?,
- 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,
);