How do you load array and object from Cloud Firestore in Flutter

后端 未结 4 587
梦谈多话
梦谈多话 2020-12-01 02:52

I have a class that has several embedded arrays as well as a couple of objects. I\'m using Flutter and can\'t figure out how to read/write to Cloud Firestore.

I can r

4条回答
  •  庸人自扰
    2020-12-01 03:26

    If you came here because of List is not of type List error while reading data from firestore, you can just use List.castFrom

    Example: List cards = List.castFrom(cardsListFromFirebase);

    Checkout Flutter firebase, List is not of type List

提交回复
热议问题