Browse Source

migrated trash_file.dart to null safety

ashilkn 2 years ago
parent
commit
1fa34c9ae6
1 changed files with 3 additions and 5 deletions
  1. 3 5
      lib/models/trash_file.dart

+ 3 - 5
lib/models/trash_file.dart

@@ -1,16 +1,14 @@
-// @dart=2.9
-
 import 'package:photos/models/file.dart';
 
 class TrashFile extends File {
   // time when file was put in the trash for first time
-  int createdAt;
+  int? createdAt;
 
   // for non-deleted trash items, updateAt is usually equal to the latest time
   // when the file was moved to trash
-  int updateAt;
+  int? updateAt;
 
   // time after which will will be deleted from trash & user's storage usage
   // will go down
-  int deleteBy;
+  int? deleteBy;
 }