Future<List> getHistory() async {
List images;
final List<DocumentSnapshot> documents =
(await Firestore.instance.collection("History").getDocuments()).documents;
images = documents.map((documentSnapshot) => documentSnapshot['images']).toList();
return images;
}
Hi all, what am I doing wrong here, it never returns images. I am sure that I am not doing this the correct way so any hints would be greatly appreciated.
class _HomeScreenState extends State<HomePage> {
@override
void initState() {
super.initState();
getHistory();
}
Thank you