containsAll<E> function

bool containsAll<E>(
  1. Iterable<E> listA,
  2. Iterable<E> listB
)

Check if all elements in the listB is contains in the listA

Implementation

bool containsAll<E>(Iterable<E> listA, Iterable<E> listB) {
  bool result = true;
  for (final E element in listB) {
    if (!listA.contains(element)) {
      return false;
    }
  }
  return result;
}