containsAll static method

bool containsAll(
  1. String haystack,
  2. List needles, {
  3. bool ignoreCase = false,
})

Determines if haystack contains all the needles.

Implementation

static bool containsAll(
  String haystack,
  List needles, {
  bool ignoreCase = false,
}) {
  for (final n in needles) {
    if (!contains(haystack, n, ignoreCase: ignoreCase)) return false;
  }
  return true;
}