瀏覽代碼

made all members of EncryptionResult nullable

ashilkn 2 年之前
父節點
當前提交
aa42403d2d
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      lib/models/encryption_result.dart

+ 8 - 8
lib/models/encryption_result.dart

@@ -1,15 +1,15 @@
 import 'dart:typed_data';
 
 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({
-    required this.encryptedData,
-    required this.key,
-    required this.header,
-    required this.nonce,
+    this.encryptedData,
+    this.key,
+    this.header,
+    this.nonce,
   });
 }