Browse Source

explicitly downcast as dart versions >= 2.9 doesn't support implicit downcasts

ashilkn 2 năm trước cách đây
mục cha
commit
2a686f4372
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/utils/file_uploader.dart

+ 1 - 1
lib/utils/file_uploader.dart

@@ -153,7 +153,7 @@ class FileUploader {
       }
       return CollectionsService.instance
           .addToCollection(collectionID, [uploadedFile]).then((aVoid) {
-        return uploadedFile;
+        return uploadedFile as File;
       });
     });
   }