closePdfPage static method
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;
}
}