我正在使用Dart,Flutter和Firebase制作一个应用程序。有注册/登录,我使用云firestore作为数据库。在我的云firestore中,用户UID是文档id,我有每个用户的特定数据(结果)。 我只想检索当前用户的数据(存储在Firestore中)并显示在屏幕上。//data is successfully stored in firestore<
因此,我在云firestore中有一个Timestamp。我正在使用云函数从firestore到flutter检索数据。但是JSON格式化时间戳到映射,由于这我不能使用它作为时间戳。如何将其再次转换为时间戳?
这就是我将时间戳放到firestore的方法。<String, dynamic>' is not a subtype of type 'Tim
现在,这实际上不是问题的原因,因为它在使用JavaScript库用于云防火墙时起作用。/firestore/DocumentReference; or its super classes
(declaration of 'com.google.firebase.firestore.DocumentReferenceio.flutter.plugins.firebase.cloudfirestore.请注意,我可以从消防局