closePdf static method

Future<int?> closePdf({
  1. required int pdf,
})

Close a PDF by the given pdf identifier.

The identifier comes from the openPdf method.

Implementation

static Future<int?> closePdf({
  required int pdf,
}) async {
  final id = await _channel.invokeMethod<int>('closePDF', {
    'pdf': pdf,
  });
  return id;
}