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