From 2cd32a854746fd9b36ba3ce16f9f4d27b663491c Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Mon, 6 Sep 2021 08:46:23 +0200 Subject: [PATCH] fix: Make bytes in encrypted file nullable This was a mistake to make them non nullable. There are fields in the app where we create this object without bytes. --- lib/src/utils/crypto/encrypted_file.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/utils/crypto/encrypted_file.dart b/lib/src/utils/crypto/encrypted_file.dart index 754e5ced..1c71a120 100644 --- a/lib/src/utils/crypto/encrypted_file.dart +++ b/lib/src/utils/crypto/encrypted_file.dart @@ -22,12 +22,12 @@ import 'crypto.dart'; class EncryptedFile { EncryptedFile({ - required this.data, + this.data, required this.k, required this.iv, required this.sha256, }); - Uint8List data; + Uint8List? data; String k; String iv; String sha256;