SetUtils extension
Utility extension methods for working with sets in Dart.
Provides helpful methods for checking subset and superset relationships between sets, particularly when working with sets of nullable objects.
Example:
final a = {1, 2};
final b = {1, 2, 3};
print(a.isSubsetOf(b)); // true
print(b.isSupersetOf(a)); // true
Methods
-
isSubsetOf(
Set< Object?> other) → bool -
Available on Set<
Utility extension methods for working with sets in Dart.Object?> , provided by the SetUtils extension -
isSupersetOf(
Set< Object?> other) → bool -
Available on Set<
Utility extension methods for working with sets in Dart.Object?> , provided by the SetUtils extension