`final dbRef = database.child("Blocos");
dbRef.onValue.listen((event) => {
event.snapshot.children.forEach((child) {
if (child.key != null) {
item.add(child.key.toString());
}
})
});
print(item);
when I print it only appears [], how do I make a list of the type [word1, word2] appear? I intend to use the list to make a dropdownbutton afterwards.