decryptFile method
Decrypts the file at inputPath and writes the result to outputPath.
Implementation
@override
Future<bool> decryptFile({required String inputPath, required String outputPath, required String key, String? iv}) async{
try {
final Map<String, dynamic> args = {
'inputPath': inputPath,
'outputPath': outputPath,
'key': key,
};
if (iv != null) {
args['iv'] = iv;
}
final bool result = await methodChannel.invokeMethod('decryptFile', args);
return result;
} on PlatformException catch (e, st) {
dev.log('decryptFile failed: $e', name: 'MethodChannelAesEncryptFile', error: e, stackTrace: st);
rethrow;
}
}