Flutter how to add id to firebase documentsnapshot

前端 未结 0 1102
误落风尘
误落风尘 2020-12-17 04:27

I am getting products from firebase firestore. Is it possible to add id to every product, from 0,1,2,3...?

Here is my code:

class ProductsRepository {
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题