skip to Main Content

Flutter firebase: Bad state: field does not exist within the DocumentSnapshotPlatform

I'm getting this error: Bad state: field does not exist within the DocumentSnapshotPlatform with the following code: static List<Report?> reportListFromSnapshot(QuerySnapshot snapshot) { return snapshot.docs.map<Report?>((report) { return Report( type: report['type'], reason: report['reason'], reportId: report['id'], chat: (report['chat'] == null) ? null :…

VIEW QUESTION
Back To Top
Search