You’re trying to loop over a map, but (as the error says) a map isn’t iterable. You can loop over the keys of the map though:

for (var key in dataSnapshot.value.keys) {
  print(dataSnapshot.value[key]);
}

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top