closePdfPage static method

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

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

Index is starting with 0.

Implementation

static Future<int?> closePdfPage({
  required int pdf,
  required int page,
}) async {
  if (Platform.isAndroid) {
    final index = await _channel.invokeMethod<int>('closePDFPage', {
      'pdf': pdf,
      'page': page,
    });
    return index;
  } else {
    return page;
  }
}