encryptFile method

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

Implementation

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