I wanted to retrieve data from firestore to flutter app. I have a lot of data. So I don't wanted to all the data at once. I wanted to get first 10 documents at once and when press load more, it should give another 10 documents so on. I tried this way.
var myWhishlist; late QuerySnapshot snap; late CollectionReference userDoc; retrieve() async { userDoc = FirebaseFirestore.instance .collection('user/' + Uid + "/myItems"); snap = await userDoc.where('isPaid', isEqualTo: false).limit(10).get(); myWhishlist = snap.docs.map((e) => e.id).toList(); } In this way I got first 10 documents. How to get next 10 documents? IS there any method available to get like this? Can Some one help me?
Thanks in advance.