containsAllList method

bool containsAllList(
  1. List<T> items
)

Check if the list contains all elements of List items. Returns true if the list contains all elements of items, false otherwise.

Implementation

bool containsAllList(List<T> items) {
  for (final item in items) {
    if (!contains(item)) return false;
  }
  return true;
}