How to remove indentical ones from list dart :flutter

I have a list like this in my dart file:

List data = [{anjaaabq, 5:30}, {anjaaabq, 9:00}, {anjaaabq, 5:30},
{anjaaabq, 9:00},{amammama, 5:30}, {amammama, 9:00}, {anjaaabq, 5:30},
{anjaaabq, 9:00},{amammama, 5:30}, {amammama, 9:00}, {anjaaabq, 5:30},
{anjaaabq, 9:00},{amammama, 5:30}, {amammama, 9:00}, {arun, 5:30}, 
{arun, 9:00}];

So, I want to make this look like

[{anjaaabq, 5:30}, {anjaaabq, 9:00}, {amammama, 5:30}, {amammama, 9:00},
{arun, 5:30}, {arun, 9:00}];

How can I remove identical objects from this list?

i tried to data = data.toString but it only showing {{anjaaabq, 5:30}, {anjaaabq, 5:30}, {anjaaabq, 5:30}, {anjaaabq, 5:30}} like this



Read more here: https://stackoverflow.com/questions/67390926/how-to-remove-indentical-ones-from-list-dart-flutter

Content Attribution

This content was originally published by engineers choice at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: