我正在获取数据云firestore&试图通过使用以下代码在我的应用程序中显示.
new Text(timeago.format(document.data['tripDoc']['docCreatedOn'])),
我正在使用timeago dart包来格式化.但是,在更新到最新的云firestore插件后,我收到此错误 –
Another exception was thrown: type 'Timestamp' is not a subtype of type 'DateTime'
无法理解如何将此’TimeStamp’对象解析为’DateTime’.因为timeago插件需要DateTime对象格式的数据.