decryptFile method

  1. @override
Future<bool> decryptFile(
  1. String sharedSecret,
  2. String ctPath,
  3. String ptPath
)
override

Implementation

@override
Future<bool> decryptFile(
    String sharedSecret, String ctPath, String ptPath) async {
  final result = await _methodChannel.invokeMethod<Map<dynamic, dynamic>>('decryptFile', {
    'sharedSecret': sharedSecret,
    'ctPath': ctPath,
    'ptPath': ptPath,
  });
  if (result == null
    || result["opOk"] == null
    ) {
    throw PlatformException(code: "decryptFile(): Error retrieving opOk");
  }
  return result["opOk"];
}