How to loop through a Firebase datasnapshot sub childrens? Flutter

后端 未结 2 530
野性不改
野性不改 2021-01-12 21:23

I have a DataSnapshot JSON object :

{fridge2: true, fridge1: true} //data pulled from a real time firebase database

I have to put fri

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-12 22:11

    you insert just the key and you have to insert key and values i think or tell me what is ur list ..ArrayList , stack,Linked List or tree i think all what you need to do .. fridges.add(fridge.key,fridge.value);

提交回复
热议问题