I am new to flutter, can someone help me? I need to remove extra from similar categories of List<device>. I will use it in a GridView.builder where a category name is displayed. There can also be no category.
List<Device> _deviceList = [
Device('id':'d1', 'Name':'Fan', 'Category':'LivingRoom'),
Device('id':'d2', 'Name':'Tv', 'Category':'LivingRoom'),
Device('id':'d3', 'Name':'Light', 'Category':''),
Device('id':'d4', 'Name':'refrigerator', 'Category':'Kitchen'),
];
//I need to filter this so only one livingroom and any other similar category should come only once in GridView
