I have problem with getting all childrens from my List in Flutter.
The List structure looks like that:
List _mainlist =
[{element1: [null, "abc1", "abc2"], element2: [null, "abc3", "abc4"], ... }]
My question is how to get List looks like that:
["abc1", "abc2", "abc3", "abc4", ...]
I try with this code but it's not working
List mylist = _mainlist[0];
List alllist = [];
mylist.forEach((element) {
alllist.add(element);
});