I have this simple nested List inside List of Maps, how to iterate this variable? This code below raise an error.
A nullable expression can't be used as an iterator in a for-in loop.
void main() {
final changes = [
{
'version': '1',
'date': '3 Nov 2021',
'content': [
'Changes 1',
'Changes 2',
],
},
{
'version': '2',
'date': '5 Nov 2021',
'content': [
'Changes 3',
'Changes 4',
],
},
];
for (var el in changes) {
for (var subEl in el['content']) {
print (subEl);
}
}
}
