isSubset<T> function

bool isSubset<T>(
  1. Set<T> a,
  2. Set<T> b
)

Subset Check: returns true if a is a subset of b.

Example: isSubset({1, 2}, {1, 2, 3}) => true

Implementation

bool isSubset<T>(Set<T> a, Set<T> b) => b.containsAll(a);