AlhPdfViewController constructor
AlhPdfViewController({
- required int id,
- required RenderCallback? onRender,
- required PageChangedCallback? onPageChanged,
- required ErrorCallback? onError,
- required PageErrorCallback? onPageError,
- required ZoomChangedCallback? onZoomChanged,
- required LinkHandleCallback? onLinkHandle,
Implementation
AlhPdfViewController({
required int id,
required this.onRender,
required this.onPageChanged,
required this.onError,
required this.onPageError,
required this.onZoomChanged,
required this.onLinkHandle,
}) {
_channel = MethodChannel('alh_pdf_view_$id');
_channel.setMethodCallHandler(_onMethodCall);
}