Hello, this is IT dart Dr. HO. Today, let's look at dart's Set.




1
2
3
4
5
6
void main() {
  print('Hello, World!');
  Set<int> a = {1, 2, 1, 2,1,2}; 
  print(a);
  
}
cs

The grammar is like this:

The format is the same as the picture above.


Conclusion: If there is a duplicate result in the variable, the result is excluded.

No duplicates are visible.