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.
This commit is contained in:
Christian Pauly 2021-09-06 08:46:23 +02:00
parent 1c7df57b9e
commit 2cd32a8547
1 changed files with 2 additions and 2 deletions

View File

@ -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;