# Dart Sets: Finding Duplicates

In Dart, sets allow you to perform various operations to check relationships between sets. These relationships include testing for equality, subset, and superset. Here's how you can check these relationships in Dart:

### Equality

You can check if two sets are equal, meaning they have the same elements, regardless of their order.

```dart
var set1 = {1, 2, 3};
var set2 = {3, 2, 1};

print(set1 == set2); // true
```

### Subset

You can check if a set is a subset of another set, meaning all elements of the first set are also in the second set.

```dart
var set1 = {1, 2};
var set2 = {1, 2, 3};

print(set1.isSubsetOf(set2)); // true
```

### Superset

You can check if a set is a superset of another set, meaning it contains all elements of the second set.

```dart
var set1 = {1, 2, 3};
var set2 = {1, 2};

print(set1.isSupersetOf(set2)); // true
```

### Proper Subset and Proper Superset

You can also check for proper subset and proper superset relationships, meaning one set is a subset or superset of another, but not equal.

```dart
var set1 = {1, 2};
var set2 = {1, 2, 3};

print(set1.isProperSubsetOf(set2)); // true
print(set2.isProperSupersetOf(set1)); // true
```

These operations help you understand the relationships between sets and are useful in various algorithms and data processing tasks.
