containsAll static method

bool containsAll(
  1. Iterable iterable1,
  2. Iterable iterable2
)

Returns true if all elements of iterable2 are also contained in iterable1.

Implementation

static bool containsAll(final Iterable iterable1, final Iterable iterable2) {
  if (iterable2.isEmpty) {
    return true;
  }

  return iterable2.every((element) => iterable1.contains(element));
}