浏览代码

migrated trash_file.dart to null safety

ashilkn 2 年之前
父节点
当前提交
1fa34c9ae6
共有 1 个文件被更改,包括 3 次插入5 次删除
  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';
 import 'package:photos/models/file.dart';
 
 
 class TrashFile extends File {
 class TrashFile extends File {
   // time when file was put in the trash for first time
   // 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
   // for non-deleted trash items, updateAt is usually equal to the latest time
   // when the file was moved to trash
   // when the file was moved to trash
-  int updateAt;
+  int? updateAt;
 
 
   // time after which will will be deleted from trash & user's storage usage
   // time after which will will be deleted from trash & user's storage usage
   // will go down
   // will go down
-  int deleteBy;
+  int? deleteBy;
 }
 }