I have this List of objects
const List categories = [
{'title': 'category 1', 'value': 1000},
{'title': 'category 2', 'value': 2000},
{'title': 'category 3', 'value': 3000},
];
And I'm trying to map this list to render some UI in a Column widget, so I did this
Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: categories.map((e) => Category(title: e.title, value: e.value)).toList(),
),
