Bläddra i källkod

made all members of EncryptionResult nullable

ashilkn 2 år sedan
förälder
incheckning
aa42403d2d
1 ändrade filer med 8 tillägg och 8 borttagningar
  1. 8 8
      lib/models/encryption_result.dart

+ 8 - 8
lib/models/encryption_result.dart

@@ -1,15 +1,15 @@
 import 'dart:typed_data';
 import 'dart:typed_data';
 
 
 class EncryptionResult {
 class EncryptionResult {
-  final Uint8List encryptedData;
-  final Uint8List key;
-  final Uint8List header;
-  final Uint8List nonce;
+  final Uint8List? encryptedData;
+  final Uint8List? key;
+  final Uint8List? header;
+  final Uint8List? nonce;
 
 
   EncryptionResult({
   EncryptionResult({
-    required this.encryptedData,
-    required this.key,
-    required this.header,
-    required this.nonce,
+    this.encryptedData,
+    this.key,
+    this.header,
+    this.nonce,
   });
   });
 }
 }