Would like to loop through a multidimensional object but appear to be missing something.
String label, action;
var symbol;
Object toggles = [
{
label = 'Reckless',
},
{
label = 'Feckless',
},
{
label = 'Legless',
},
];
I attempted to use this in a Row:
Row(
children: for (var toggle in toggles) {
Text('label ${toggle.label}')
},
);
Error message concerns for stating that it expected an identified. Clearly I'm not fully understanding how to do this.