PdfReflowImageShareHandler typedef

PdfReflowImageShareHandler = Future<void> Function(BuildContext context, Uint8List pngBytes)

Receives a figure the reader tapped in PdfReflowView, rendered as a PNG, to save or share it (typically the platform share sheet / a save dialog). With no handler the fullscreen image viewer still opens (pan and pinch to zoom) - it just omits the share action.

Implementation

typedef PdfReflowImageShareHandler = Future<void> Function(
    BuildContext context, Uint8List pngBytes);