decrypt method Null safety

Future<String?> decrypt (
  1. String data,
  2. String key
)

Decrypts data created with the encrypt method using a key created with generateRandomKey or generateKeyFromPassword methods. In case the key is wrong or the data has been forged, a MacMismatchException is thrown

Implementation

Future<String?> decrypt(String data, String key);