Convert Firestore DocumentSnapshot to Map in Flutter

后端 未结 5 1629
误落风尘
误落风尘 2020-12-16 07:13

I need to update a document with nested arrays in Firestore with Flutter.

So I need to get the full document into a Map, reorder the maps in the \"sections\" array,

5条回答
  •  无人及你
    2020-12-16 08:07

    Updated September-2020

    To get data from a snapshot document you now have to call snapshot.data() (cloud_firestore 0.14.0 or higher)

提交回复
热议问题