flutter エラー error: The method 'data' isn't defined for the type 'Object'. (undefined_method at [] lib/Utils/firebase.dart:118)
await Future.forEach(snapshot.docs, (doc){
});
を
await Future.forEach(snapshot.docs, (QueryDocumentSnapshot<Map<String, dynamic>> doc){
});
こうします