浏览代码

migrated ente_file.dart to null safety

ashilkn 2 年之前
父节点
当前提交
76092f243c
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      lib/models/ente_file.dart

+ 2 - 4
lib/models/ente_file.dart

@@ -1,14 +1,12 @@
 // EnteFile is base file entry for various type of files
 // EnteFile is base file entry for various type of files
 // like DeviceFile,RemoteFile or TrashedFile
 // like DeviceFile,RemoteFile or TrashedFile
 
 
-// @dart=2.9
-
 abstract class EnteFile {
 abstract class EnteFile {
   // returns cacheKey which should be used while caching entry related to
   // returns cacheKey which should be used while caching entry related to
   // this file.
   // this file.
-  String cacheKey();
+  String? cacheKey();
 
 
   // returns localIdentifier for the file on the host OS.
   // returns localIdentifier for the file on the host OS.
   // Can be null if the file only exist on remote
   // Can be null if the file only exist on remote
-  String localIdentifier();
+  String? localIdentifier();
 }
 }