How to loop through a Firebase datasnapshot sub childrens in flutter?

Posted by Rohit Kumar | Updated on

Want to loop through a Firebase datasnapshot sub childrens in flutter? I used to print(fridgesDs.runtimeType); to get the type of variable returned by firebase. it is actually a HashMap: _InternalLinkedHashMap The casted the returned value into a Map.

Example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers