Entfernen Sie Duplikate von Array Dart
List<int> duplicates = [1, 1, 2, 4, 2, 6, 8, 4, 5];
List<int> withoutDuplicates = duplicates.toSet().toList();
Gorgeous Gerbil
List<int> duplicates = [1, 1, 2, 4, 2, 6, 8, 4, 5];
List<int> withoutDuplicates = duplicates.toSet().toList();
var nl = [1,5,6,4,7,8,2,1,5];
//duplicate numbers
var n =nl.toSet().toList();