isSuperset<T> function

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

Superset Check: returns true if a is a superset of b.

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

Implementation

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