Browse Source

migrated delete_account.dart to null safety

ashilkn 2 năm trước cách đây
mục cha
commit
fd586f4787
1 tập tin đã thay đổi với 2 bổ sung6 xóa
  1. 2 6
      lib/models/delete_account.dart

+ 2 - 6
lib/models/delete_account.dart

@@ -1,13 +1,9 @@
-// @dart=2.9
-
-import 'package:flutter/foundation.dart';
-
 class DeleteChallengeResponse {
   final bool allowDelete;
   final String encryptedChallenge;
 
   DeleteChallengeResponse({
-    @required this.allowDelete,
-    this.encryptedChallenge,
+    required this.allowDelete,
+    required this.encryptedChallenge,
   });
 }