closePdf method

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

Close a PDF by the given pdf identifier.

The identifier comes from the openPdf method.

Implementation

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