我正在获取数据云firestore &尝试使用以下代码在我的应用程序中显示。new Text(timeago.format(document.data['tripDoc']['docCreatedOn'])),Another exception was thrown: type 'Timestamp' is not a subtype of
我正在读取Firestore的数据。我收到了一个错误,上面写着type 'Timestamp' is not a subtype of type 'String' in type cast,所以我将下面的createDate行改为使用.toStringString; //This gives the error: 'type 'Timestamp' is not a subtype of type 'String' in type cast'