openPdfPage static method

Future<int?> openPdfPage({
  1. required int pdf,
  2. required int page,
})

Open a PDF page by the given pdf identifier and the given page index.

Index is starting with 0.

Implementation

static Future<int?> openPdfPage({
  required int pdf,
  required int page,
}) async {
  final index = await _channel.invokeMethod<int>('openPDFPage', {
    'pdf': pdf,
    'page': page,
  });
  return index;
}