AlhPdfViewController constructor

AlhPdfViewController({
  1. required int id,
  2. required RenderCallback? onRender,
  3. required PageChangedCallback? onPageChanged,
  4. required ErrorCallback? onError,
  5. required PageErrorCallback? onPageError,
  6. required ZoomChangedCallback? onZoomChanged,
  7. 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);
}