decrypt method
Implementation
@override
Future<String> decrypt(String encrypted) async {
final decrypted = await methodChannel
.invokeMethod<String>('decrypt', {'data': encrypted});
if (decrypted == null) {
throw PlatformException(
code: 'DECRYPTION_FAILED',
message: 'Decryption returned null',
);
}
return decrypted;
}